Skip to content

Commit c610e50

Browse files
committed
Add JaCoCo coverage support and make coverage target
1 parent 33a3d78 commit c610e50

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ init:
1515
test:
1616
./gradlew test --info
1717

18+
# Run test coverage
19+
coverage:
20+
./gradlew test jacocoTestReport
21+
@echo "Coverage report: build/reports/jacoco/test/html/index.html"
22+
1823
build: clean
1924
./gradlew build publishToMavenLocal -x test
2025
@echo "see build/lib"

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// Java library
22
plugins {
33
id 'java-library'
4-
}
5-
6-
plugins {
7-
id 'maven-publish'
4+
id 'maven-publish'
5+
id 'jacoco'
86
}
97

108
// Package default

0 commit comments

Comments
 (0)