Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Aaron Armistead October 26, 2012

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
Answer accepted
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 5, 2012

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

0 votes
jjaroczynski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2012

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events