gradle-print-coverage-plugin icon indicating copy to clipboard operation
gradle-print-coverage-plugin copied to clipboard

support multiple testsets in one gradle project

Open TorstenF76 opened this issue 3 years ago • 0 comments

We have in many projects unit tests and integration tests in different test sets.

JaCoCo can handle this out of the box, but printCoverage only prints the coverage of the unit tests.

So I added a loop over the existing test sets and print each coverage. To be backwards-compatible, the single test sets print the name of the test set so that this does not clash with the existing grep for "Coverage: ".

The resulting Coverage is just the maximum value of the test sets as we are here not able to differ if the coverage is overlapping or not - usually it is.

TorstenF76 avatar Sep 01 '22 14:09 TorstenF76