diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-02-25 10:21:16 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-02-25 10:21:16 -0600 |
commit | 3900aaeebfcf5abe70964fdd42aafa0707dfe2ea (patch) | |
tree | 21d2d77b52681a1ec919b9f81f3c5d21aedb33d2 /src/main/scala/org/perl8/test/harness/TAPReporter.scala | |
parent | 3421a8eb9ed7c03001db90090c5c34d699b8fab0 (diff) | |
download | scala-test-more-3900aaeebfcf5abe70964fdd42aafa0707dfe2ea.tar.gz scala-test-more-3900aaeebfcf5abe70964fdd42aafa0707dfe2ea.zip |
switch back to (a simpler form of) tests reporting their exit code
Diffstat (limited to 'src/main/scala/org/perl8/test/harness/TAPReporter.scala')
-rw-r--r-- | src/main/scala/org/perl8/test/harness/TAPReporter.scala | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/main/scala/org/perl8/test/harness/TAPReporter.scala b/src/main/scala/org/perl8/test/harness/TAPReporter.scala index 87d4955..d6f27fd 100644 --- a/src/main/scala/org/perl8/test/harness/TAPReporter.scala +++ b/src/main/scala/org/perl8/test/harness/TAPReporter.scala @@ -6,19 +6,6 @@ import org.perl8.test.tap import org.perl8.test.Test class TAPReporter extends Reporter { - def run (testName: String): Int = { - val out = new ByteArrayOutputStream - Console.withOut(out) { - Console.withErr(out) { - newInstance[Test](testName).run - } - } - - // XXX this is wrong: it sends everything to stdout - // need to write a tee-like outputstream to fix it - print(out) - - val result = tap.Consumer.parse(out) - result.exitCode - } + def run (testName: String): Int = + newInstance[Test](testName).run } |