Produces code coverage reports for your JVM-based projects using Cobertura
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.mapvine:gradle-cobertura-plugin:1.0'
}
}
apply plugin: 'cobertura'
cobertura {
format = 'xml'
includes = ['**/*.java', '**/*.groovy']
}
- (Optional) format = 'html' (default) or 'xml'
- (Optional) includes = List glob paths to be reported on
- (Optional) excludes = List glob paths to exclude from reporting
- (Optional) ignores = List regexes of classes to exclude from instrumentation
When using in conjunction with the Java plugin, the test
task is preconfigured for code coverage analysis. To generate the coverage report, run the testCoberturaReport
task.
This plugin is licensed under the Apache License 2.0