aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/scala/org/perl8/test/harness/TAPReporter.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/org/perl8/test/harness/TAPReporter.scala')
-rw-r--r--src/main/scala/org/perl8/test/harness/TAPReporter.scala17
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
}