aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/scala/org/perl8/test/tap/TestBuilder.scala
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-02-23 16:09:06 -0600
committerJesse Luehrs <doy@tozt.net>2013-02-23 16:15:11 -0600
commit073d5a06c07c85c0d1794c4a15d564e8463b31fc (patch)
treedfb53af9f24d8cec55f41ea7024de1060be07c36 /src/main/scala/org/perl8/test/tap/TestBuilder.scala
parent18854928e8697f733d2758d274151999bcc4a238 (diff)
downloadscala-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/tap/TestBuilder.scala')
-rw-r--r--src/main/scala/org/perl8/test/tap/TestBuilder.scala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/scala/org/perl8/test/tap/TestBuilder.scala b/src/main/scala/org/perl8/test/tap/TestBuilder.scala
index 203080c..b1d8579 100644
--- a/src/main/scala/org/perl8/test/tap/TestBuilder.scala
+++ b/src/main/scala/org/perl8/test/tap/TestBuilder.scala
@@ -51,13 +51,13 @@ class TestBuilder (
throw new BailOutException(message.getOrElse(""))
}
- def doneTesting () {
+ def doneTesting (): Boolean = {
plan match {
case None => outLine(Producer.plan(state.currentTest - 1))
case _ => ()
}
- if (!isPassing) {
+ if (!state.isPassing) {
if (!state.matchesPlan) {
val planCount = (plan match {
case Some(p) => p.plan
@@ -80,10 +80,9 @@ class TestBuilder (
diag("Looks like you failed " + fails + " of " + total + ".")
}
}
- }
- def isPassing: Boolean =
state.isPassing
+ }
def failedTests: Int =
state.failCount