Skip to content

Commit 9cf09f9

Browse files
authored
Merge pull request #5 from memoizr/coverage
Add coverage reports
2 parents 9728008 + 93bb015 commit 9cf09f9

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ language: java
22
jdk:
33
- oraclejdk8
44
after_success:
5-
- ./gradlew cobertura coveralls
5+
- if [ -e ./gradlew ]; then ./gradlew jacocoTestReport;else gradle jacocoTestReport;fi
6+
- bash <(curl -s https://codecov.io/bash) -t 7a683107-98e4-4c0d-b154-649e9ac9693c

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
[![Build Status](https://travis-ci.org/memoizr/assertk-core.svg?branch=master)](https://travis-ci.org/memoizr/assertk-core)
2-
[![](https://jitpack.io/v/memoizr/assertk-core.svg)](https://jitpack.io/#memoizr/assertk-core)
3-
[![GitHub license](https://img.shields.io/github/license/kotlintest/kotlintest.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
1+
[![Build Status](https://travis-ci.org/memoizr/assertk-core.svg?branch=master)](https://travis-ci.org/memoizr/assertk-core) [![](https://jitpack.io/v/memoizr/assertk-core.svg)](https://jitpack.io/#memoizr/assertk-core) [![GitHub license](https://img.shields.io/github/license/kotlintest/kotlintest.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) [![codecov](https://codecov.io/gh/memoizr/assertk-core/branch/master/graph/badge.svg)](https://codecov.io/gh/memoizr/assertk-core)
2+
43
# AssertK - Fluent assertions for Kotlin
54
AssertK provides a Kotlin-friendly syntax for using the amazing AssertJ assertion framework.
65

build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,23 @@ buildscript {
1111
}
1212
}
1313

14-
plugins {
15-
id 'net.saliman.cobertura' version '2.3.1'
16-
id 'com.github.kt3k.coveralls' version '2.6.3'
17-
}
18-
19-
cobertura.coverageFormats = ['html', 'xml']
20-
cobertura.coverageSourceDirs = ['src/main/kotlin']
21-
cobertura.coverageSourceDirs = ['src/test/kotlin']
2214
group 'com.memoizr'
2315
version '0.1'
2416

2517
apply plugin: 'kotlin'
18+
apply plugin: 'jacoco'
2619

2720
repositories {
2821
maven { url "https://dl.bintray.com/kotlin/kotlin-eap-1.1" }
2922
jcenter()
3023
}
3124

25+
jacocoTestReport {
26+
reports {
27+
xml.enabled true
28+
}
29+
}
30+
3231
dependencies {
3332
compile "org.jetbrains.kotlin:kotlin-stdlib:$KOTLIN_VERSION"
3433
compile group: 'org.assertj', name: 'assertj-core', version: '2.5.0'

0 commit comments

Comments
 (0)