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).
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.