stevesaliman / gradle-cobertura-plugin

Gradle Cobertura Plugin
118 stars 50 forks source link

Build successful even when check failed #134

Closed piotrgajow closed 7 years ago

piotrgajow commented 7 years ago

During project check, cobertura reports project failed coverage check, however gradle still treats build as successful.

cobertura

stevesaliman commented 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.