Can clover for grails check for a coverage % or implement ratcheting of code coverage

I've used clover to fail builds based on a preset % of code coverage, as well as a comparison to a history point.

Is there a way to do this with the clover-for-grails plugin? I've looked through the documentation, and I can't find anything obvious. I'm curious if this is a feature or if this is going to added in the future (or not).

2 answers

1 accepted

0 votes
Accepted answer

See, chapter "Advanced Report Configuration". You can define a custom reporttask closure - it will be called during report generation. You might put there something like:

reporttask = { ant, binding, plugin ->
ant.'clover-check'(target: "90%", haltOnFailure: true)


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

56 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you