Gradle Plugins

Maintained by aalmiray

Summary

Send coverage data to coveralls.io.

Website https://github.com/kt3k/coveralls-gradle-plugin
Author kt3k
Version 0.3.1

Usage

The coveralls plugin requires an XML code coverage report. You may use either Cobertura or JaCoCo to obtain this report.

Setting up Cobertura:

buildscript {
    repositories { jcenter() }
    dependencies {
        classpath 'net.saliman:gradle-cobertura-plugin:2.2.2'
        classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:0.3.1'
    }
}
apply plugin: 'cobertura'
apply plugin: 'coveralls'

cobertura.coverageFormats = ['html', 'xml']

Setting up JaCoCo:

buildscript {
    repositories { jcenter() }
    dependencies {
        classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:0.2.5'
    }
}

apply plugin: 'jacoco'
apply plugin: 'coveralls'

jacocoTestReport {
    reports {
        xml.enabled = true
        html.enabled = true
    }
}