Skip to content

Commit

Permalink
Suppress test output if no tests ran (resolves #212)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickynils committed Dec 26, 2015
1 parent fb6f2b5 commit df435a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/org/scalacheck/ScalaCheckFramework.scala
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ final class ScalaCheckFramework extends Framework {
None
}

def done = {
def done = if (testCount.get > 0) {
val heading = if (testCount.get == successCount.get) "Passed" else "Failed"
s"$heading: Total $testCount, " +
s"Failed $failureCount, Errors $errorCount, Passed $successCount" +
(if(unknownArgs.isEmpty) "" else
s"\nWarning: Unknown ScalaCheck args provided: ${unknownArgs.mkString(" ")}")
}
} else ""

}

Expand Down

0 comments on commit df435a5

Please sign in to comment.