Skip to content
Gradle plugin for Cobertura
Groovy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
.travis.yml
LICENSE Update LICENSE to adhere to Apache licensing guidelines Dec 6, 2016
README.md
build.gradle
gradlew
gradlew.bat

README.md

Gradle Cobertura Plugin Build Status

Produces code coverage reports for your JVM-based projects using Cobertura

Quick Start

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.eriwen:gradle-cobertura-plugin:1.1.1'
    }
}

apply plugin: 'cobertura'

cobertura {
    format = 'xml'
    includes = ['**/*.java', '**/*.groovy']
    excludes = ['com/thirdparty/**/*.*']
}

Configuration

  • (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

With java plugin

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.

License

This plugin is licensed under the Apache License 2.0

You can’t perform that action at this time.