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

This widget could not be displayed.

See https://confluence.atlassian.com/display/CLOVER/Clover-for-Grails+Quick+Start+Guide, 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)
...
}

Regards
Marek

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

143 views 1 3
Join discussion

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