Skip to content
Permalink
Browse files

added jacoco and coverall test coverage reports

  • Loading branch information...
terzerm committed Dec 31, 2017
1 parent 03130ad commit e56d46ba42b974e5b0a288b642534ae4b466ac83
Showing with 15 additions and 1 deletion.
  1. +3 −0 .travis.yml
  2. +1 −0 README.md
  3. +11 −1 build.gradle
@@ -6,3 +6,6 @@ addons:
- oracle-java8-installer
jdk:
- oraclejdk8

after_success:
- gradle jacocoTestReport coveralls
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/tools4j/spockito.svg?branch=master)](https://travis-ci.org/tools4j/spockito)
[![Coverage Status](https://coveralls.io/repos/github/tools4j/spockito/badge.svg?branch=master)](https://coveralls.io/github/tools4j/spockito?branch=master)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.tools4j/tools4j-spockito/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.tools4j/tools4j-spockito)

# spockito
@@ -1,5 +1,7 @@
apply plugin: 'java'
apply plugin: 'license'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'

sourceCompatibility = 1.8
group = "org.tools4j"
@@ -24,7 +26,8 @@ buildscript {

dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2"
}
}

@@ -63,6 +66,13 @@ javadoc {
options.overview = "src/main/java/overview.html";
}

jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc

0 comments on commit e56d46b

Please sign in to comment.
You can’t perform that action at this time.