Description
I have a project where I aggregate many subprojects under a root project. We have coverageMinimum
set to 80% and scoverage is set to fail the build when a project is below this coverage.
I am not publishing individual project coverage reports because they are numerous and at many different paths, it's hard to view these artifacts on the CI system. Instead, I'm publishing the coverage report aggregate through which I can see individual project's coverage. Additionally, since scoverage 1.6.0
I can simply run coverageAggregate
without running coverageReport
in all subprojects first.
However, the coverageAggregate
command does not fail when a single project is blow 80%, but rather when the root project's coverage falls below 80%. Would it be easy to add an option so that coverageAggregate
fails when any project is below the minimum? This would allow users to view the failing project's coverage through the aggregate report rather than through individual reports and would be useful for projects which aggregate many subprojects.
As a workaround, I am running coverageAggregate
before coverageReport
on the root project so that I may view the failing subproject's code coverage through the aggregated report if it fails during the coverageReport
task