unbroken-dome / gradle-testsets-plugin

A plugin for the Gradle build system that allows specifying test sets (like integration or acceptance tests).
MIT License
230 stars 50 forks source link

Undocumented JaCoCo plugin integration #99

Closed wujek-srujek closed 4 years ago

wujek-srujek commented 4 years ago

My project uses JaCoCo and TestSets and I have been hit by this issue: https://github.com/gradle/gradle/issues/5898. I have been digging and found a seemingly undocumented feature of the TestSets plugin: https://github.com/unbroken-dome/gradle-testsets-plugin/blob/master/src/main/kotlin/org/unbrokendome/gradle/plugins/testsets/TestSetsPlugin.kt#L67. It seems the TestSets plugin adds a 'jacocoReport' task for each test source sets it configures.

This is very surprising and breaks the standard behavior documented here: https://docs.gradle.org/current/userguide/jacoco_plugin.html, which states only one report task is added. I spent a lot of time looking for the root issue in my project, scratching my head and wondering where the other tasks come from.

I have no issues with the additional logic but it must be documented, so the ticket is about this - add missing documentation.