Skip to content

Commit c70a889

Browse files
committed
Add test coverage verification
1 parent f929777 commit c70a889

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
1515
with:
1616
validate-wrappers: true
17-
- run: ./gradlew test jacocoTestReport
17+
- run: ./gradlew test jacocoTestReport jacocoTestCoverageVerification
1818
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
1919
with:
2020
name: jacoco-report

build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ jacoco {
99
toolVersion = "[0.8.13-SNAPSHOT,)"
1010
}
1111

12+
tasks.jacocoTestCoverageVerification {
13+
violationRules {
14+
rule {
15+
limit {
16+
element = "BUNDLE"
17+
counter = "INSTRUCTION"
18+
value = "MISSEDCOUNT"
19+
maximum = "0".toBigDecimal()
20+
}
21+
}
22+
}
23+
}
24+
1225
repositories {
1326
maven {
1427
url = uri("https://oss.sonatype.org/content/repositories/snapshots")

0 commit comments

Comments
 (0)