-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jacoco Coverage for root src missing After Upgrading to >= 0.37.0 #433
Comments
We may have upgraded to a newer release of JaCoCo between the versions you mentioned. Have you tried setting a different version for JaCoCo? |
So I tried
The above (0.36.0 gradle plugin with 0.8.6 jacoco) gives correct (86.7%) coverage whereas
|
Looking at the diff between Could you do me a favor an inspect the settings of the aggregate tasks by running with both $ gradle aggregateJacocoMergeTaskSettings
$ gradle aggregateJacocoReportTaskSettings I'm hopeful this can tell us which settings have been configured differently. |
Hi @aalmiray , happy new year to you. One difference I've spotted is that 0.36.0 detects root-project/src/main/kotlin as source, 0.37.0 onwards doesn't. 0.36.0
0.37.0
|
Happy New Year to you as well, @choweiyuan 😄 Thank you for the feedback. So it seems the root source is missing, as well as |
Hi
My project has been on org.kordamp.gradle.jacoco 0.29.0 for a long time, and I tried upgrading to 0.42.1
Our aggregateJacocoReport reports that the total coverage has dropped from 86.7% to 73.7%.
I tried upgrading version by version, and noticed that the version that start causing issue is 0.37.0.
Would like to know if anything fundamentally has changed from that version onwards that may cause coverage report changes?
Our project is structured as follows ( root folder has src/test, src/main, and have multiple submodules in project1/project2/project3 subfolders)
Another info but not sure if it's relevant. We also have integration tests, but without using the org.kordamp.gradle.integration-test module at the moment. I'm unsure if integration test is run after the upgrade
We have something like this
I tried using org.kordamp.gradle.integration-test but not sure if the aggregateJacocoReport task is aggregating build/jacoco/integrationTest.exec.
Happy to provide more info where possible/required. Thanks in advance
The text was updated successfully, but these errors were encountered: