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 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
Published 8 hours ago in Jira Ops

Jira Ops Early Access Program Update #5: Three new ways to get a live Jira Ops demo!

Welcome to your weekly Jira Ops Early Access program update, where we’re sharing news and updates on Jira Ops progress as we work toward our 1.0 release. If you ever want to drop us feedback or ideas...

20 views 0 1
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