Closed rkrisztian closed 5 years ago
Nice idea. I will look into it.
I suppose this only concerns the JacocoReport
task since the jacoco
plugin should already attach itself to all tasks of type Test
?
Yes, that's right, you can verify that behavior in the plugin source (linked the latest tag): https://github.com/gradle/gradle/blob/v5.5.0-RC2/subprojects/jacoco/src/main/java/org/gradle/testing/jacoco/plugins/JacocoPlugin.java#L150
Implemented in v2.2.0
I think it would be a useful feature to detect if the official Gradle JaCoCo plugin is applied to the project, and if yes, to apply a reporter task to all test classes created by the testsets plugin. For example like this:
For me this worked nicely, as some other defaults are configured by the JaCoCo plugin.