aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/scala/org/perl8/test/harness/MultiTestReporter.scala
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-02-21 13:27:40 -0600
committerJesse Luehrs <doy@tozt.net>2013-02-21 15:02:01 -0600
commitb8012cce2cf68d2f7c94a42dba4c0f5074e55c1d (patch)
tree117bbdaa28fb0d38c9d83bd8b089ead139557aaa /src/main/scala/org/perl8/test/harness/MultiTestReporter.scala
parent22a7e25c0bca5f08d9d8c9df8793238750d091a3 (diff)
downloadscala-test-more-b8012cce2cf68d2f7c94a42dba4c0f5074e55c1d.tar.gz
scala-test-more-b8012cce2cf68d2f7c94a42dba4c0f5074e55c1d.zip
start fleshing out the harness
Diffstat (limited to 'src/main/scala/org/perl8/test/harness/MultiTestReporter.scala')
-rw-r--r--src/main/scala/org/perl8/test/harness/MultiTestReporter.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/scala/org/perl8/test/harness/MultiTestReporter.scala b/src/main/scala/org/perl8/test/harness/MultiTestReporter.scala
new file mode 100644
index 0000000..9f128d6
--- /dev/null
+++ b/src/main/scala/org/perl8/test/harness/MultiTestReporter.scala
@@ -0,0 +1,12 @@
+package org.perl8.test.harness
+
+import org.perl8.test.Test
+import Utils._
+
+trait MultiTestReporter extends Reporter {
+ def run (tests: Array[Test]): Int =
+ tests.map(run).sum min 255
+
+ def run (testNames: Array[String]): Int =
+ run(testNames.map(newInstance[Test]))
+}