Slackbot
04/14/2022, 10:52 AMLouis Jacomet
04/14/2022, 10:59 AMTest
tasks of the project for producing coverage data.
⢠Observation 2 is the consequence of the Jacoco plugin only configuring a report task for the default test
task.
So your report configuration on the extension only applies to that report.
⢠I do not know about observation 3 ā¦
@Tom Tresansky Could you take a look at the above?Vampire
04/14/2022, 11:22 AM.exec
file is the input for the JacocoReport
task, it is an output of the Test
task that is configured with the JaCoCo agent to produce that file.
Regarding Observation 3,
yes, the directory exists, but the message says it tries to read it as file which results in an access denied exception.
You call the executionData
method with a TaskProvider
but the task is not capable of processing that properly. It only accepts TaskCollection
, Task
, and Object
. So in your case the Object
variant is used which is resolved as if you give it to Project.files
and thus it's defined outputs are used, which is the test results directory, not the Jacoco data file. As the TaskCollection
variant would anyway eagerly resolve all tasks and thus prevent task configuration avoidance, you can also directly use eager API and use the Task
variant. So for example executionData tasks.integrationTest
should work fine, as the JaCoCo plugin is simply not yet adapted to lazy APIs properly.Vampire
04/14/2022, 11:27 AMTom Gregory
04/14/2022, 3:08 PMTask
rather than TaskProvider
has fixed the issue.Maxim Alov
04/14/2022, 3:47 PMTom Tresansky
04/15/2022, 12:21 PMjacocoAggregation
configuration. The initial version of the aggregation feature did not offer this, but we are currently discussing how to expand and improve Test Suites and related features.Vampire
04/15/2022, 2:23 PMTom Gregory
04/16/2022, 5:52 AMsonaqube
plugin. In the SonaQube UI there is a single code coverage statistic. Since I have a single-module Gradle project with unit + integration tests, this is why I wanted to combine the execution data into a single XML report to send to SonaQube. Let me know if there are any other approaches.Vampire
04/16/2022, 9:06 AMTom Gregory
04/18/2022, 3:33 PMsonar.jacoco.reportPaths
?Vampire
04/18/2022, 3:55 PM