We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a07bfc5 + bfb3321 commit a66186dCopy full SHA for a66186d
src/main/scala/scoverage/ScoverageSbtPlugin.scala
@@ -145,7 +145,11 @@ class ScoverageSbtPlugin extends sbt.Plugin {
145
146
// check for default minimum
147
if (min > 0) {
148
- if (min > coverage.statementCoveragePercent) {
+ def is100(d: Double) = Math.abs(100 - d) <= 0.00001
149
+
150
+ if (is100(min) && is100(coverage.statementCoveragePercent)) {
151
+ s.log.info(s"[scoverage] 100% Coverage !")
152
+ } else if (min > coverage.statementCoveragePercent) {
153
s.log.error(s"[scoverage] Coverage is below minimum [${coverage.statementCoverageFormatted}% < $min%]")
154
if (failOnMin)
155
throw new RuntimeException("Coverage minimum was not reached")
0 commit comments