Skip to content

Commit

Permalink
Tweakable values in Gradle for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
binkley committed May 1, 2024
1 parent f767d58 commit 07205b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -196,19 +196,22 @@ jacocoTestCoverageVerification {
rule {
limit {
counter = 'LINE'
minimum = 1.00
value = 'COVEREDRATIO'
minimum = coverageLines.toBigDecimal()
}
}
rule {
limit {
counter = 'BRANCH'
minimum = 1.00
value = 'COVEREDRATIO'
minimum = coverageBranches.toBigDecimal()
}
}
rule {
limit {
counter = 'INSTRUCTION'
minimum = 1.00
value = 'COVEREDRATIO'
minimum = coverageInstructions.toBigDecimal()
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ org.gradle.jvmargs=--add-opens java.base/java.lang=ALL-UNNAMED
# Versions
assertJVersion=3.25.3
checkstyleVersion=10.15.0
coverageBranches=1.00
coverageInstructions=1.00
coverageLines=1.00
dependencyCheckPluginVersion=8.4.2
findbugsAnnotationsVersion=3.0.1
findsecbugsPluginVersion=1.13.0
Expand Down

0 comments on commit 07205b2

Please sign in to comment.