diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-02-23 16:09:06 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-02-23 16:15:11 -0600 |
commit | 073d5a06c07c85c0d1794c4a15d564e8463b31fc (patch) | |
tree | dfb53af9f24d8cec55f41ea7024de1060be07c36 /src/main/scala/org/perl8/test/sbt/SBTReporter.scala | |
parent | 18854928e8697f733d2758d274151999bcc4a238 (diff) | |
download | scala-test-more-073d5a06c07c85c0d1794c4a15d564e8463b31fc.tar.gz scala-test-more-073d5a06c07c85c0d1794c4a15d564e8463b31fc.zip |
tests shouldn't produce anything other than tap
the harness can parse the tap to figure out whatever it needs from that
Diffstat (limited to 'src/main/scala/org/perl8/test/sbt/SBTReporter.scala')
-rw-r--r-- | src/main/scala/org/perl8/test/sbt/SBTReporter.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/scala/org/perl8/test/sbt/SBTReporter.scala b/src/main/scala/org/perl8/test/sbt/SBTReporter.scala index 6307f55..2f47af2 100644 --- a/src/main/scala/org/perl8/test/sbt/SBTReporter.scala +++ b/src/main/scala/org/perl8/test/sbt/SBTReporter.scala @@ -41,14 +41,14 @@ class SBTReporter ( eventHandler.handle(event) } - if (result.results.exists { r => !r.passed && !r.directive.isDefined }) { - logError(testName + " failed.") - 1 - } - else { + if (result.success) { logInfo(testName + " succeeded.") 0 } + else { + logError(testName + " failed.") + 1 + } } private def logDebug (msg: String) { |