The file I uploaded didn't contain the gradle-cobertura-plugin-0.1.jar hence
this new upload.
Normally all you need to do is to copy all the jars to the
gradle/lib-folder.
And here is some more elaborated sample code:
import org.gradle.api.plugins.cobertura.CoberturaPlugin;
project(':SampleProject') {
usePlugin(CoberturaPlugin)
dependencies {
testRuntime ":cobertura:1.9.1"
}
test {
dependsOn 'cbInstrument'
}
cbInstrument {
// the plugin creates a copy of your classes
dependsOn 'testCompile'
include '.*com.sample.project.*'
exclude '.*com.sample.project.mockup.*'
}
cbReport {
// the plugin replaces the instrumented classes by the copy made in the
cbIntrument-task
dependsOn 'test'
}
cbCheck {
dependsOn 'cbReport'
totalBranchCoverageRate = '40'
totalLineCoverageRate = '50'
}
}
http://www.nabble.com/file/p22708176/GradleCoberturaPlugin.zip
GradleCoberturaPlugin.zip
--
View this message in context:
http://www.nabble.com/Cobertura-Plugin-tp22701606p22708176.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email