Gradle Cobertura Plugin

Gradle plugin for using Cobertura code coverage

License

License

Categories

Categories

Gradle Build Tools Cobertura Application Testing & Monitoring Code Coverage
GroupId

GroupId

com.eriwen
ArtifactId

ArtifactId

gradle-cobertura-plugin
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle Cobertura Plugin
Gradle plugin for using Cobertura code coverage
Project URL

Project URL

https://github.com/eriwen/gradle-cobertura-plugin
Source Code Management

Source Code Management

https://github.com/eriwen/gradle-cobertura-plugin

Download gradle-cobertura-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.eriwen/gradle-cobertura-plugin/ -->
<dependency>
    <groupId>com.eriwen</groupId>
    <artifactId>gradle-cobertura-plugin</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.eriwen/gradle-cobertura-plugin/
implementation 'com.eriwen:gradle-cobertura-plugin:1.1.1'
// https://jarcasting.com/artifacts/com.eriwen/gradle-cobertura-plugin/
implementation ("com.eriwen:gradle-cobertura-plugin:1.1.1")
'com.eriwen:gradle-cobertura-plugin:jar:1.1.1'
<dependency org="com.eriwen" name="gradle-cobertura-plugin" rev="1.1.1">
  <artifact name="gradle-cobertura-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.eriwen', module='gradle-cobertura-plugin', version='1.1.1')
)
libraryDependencies += "com.eriwen" % "gradle-cobertura-plugin" % "1.1.1"
[com.eriwen/gradle-cobertura-plugin "1.1.1"]

Dependencies

test (1)

Group / Artifact Type Version
org.spockframework : spock-core jar 0.6-groovy-1.8

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.1.1
1.1.0
1.0