Closed piotrgajow closed 7 years ago
By default, the Cobertura plugin only reports on the amount of coverage. If you want to fail the build when the coverage is below a particular threshold, you need to set coverageCheckHaltOnFailure = true
in your cobertura
block.
The idea is that some users will want to fail the build when coverage is low, but others only want to know about it and proceed. The coverageCheckHaltOnFailure property allows users to decide what behavior they want.
During project check, cobertura reports
project failed coverage check
, however gradle still treats build as successful.