Skip to content

Commit

Permalink
[#590] Fail the build if test coverage falls below minimum threshold.
Browse files Browse the repository at this point in the history
Closes #590
  • Loading branch information
remkop committed Jan 4, 2019
1 parent 8c0abf4 commit e2ab175
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Support was added for the following environment variables to control enabling AN
- [#584] Add documentation for generating autocompletion script during a Maven build. Thanks to [Bob Tiernay](https://github.com/bobtiernay-okta).
- [#586] Replace Ansi.Text.clone() with copy constructor.
- [#571] Improve test code coverage. Added ~300 tests to bring the total to 1300+ tests. Improved line coverage to 98% (was 88%) and complexity coverage to 98% (was 82%).
- [#590] Fail the build if test coverage falls below minimum threshold.

## <a name="3.9.0-deprecated"></a> Deprecations
No features were deprecated in this release.
Expand Down
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ jacocoTestReport {
html.enabled false
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.98
}
}
}
}
// run coverage verification during the build (and fail when appropriate)
check.dependsOn jacocoTestCoverageVerification

task bumpReadmeVersion {
doLast {
// README.md
Expand Down

0 comments on commit e2ab175

Please sign in to comment.