diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-02-27 19:19:13 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-02-27 19:19:13 -0600 |
commit | 90ca99b744e638b569d8a6bba2cc076c9a419cd2 (patch) | |
tree | 6e73ce4886467f0c508e1477746c74851d10b7ce /src/main/scala/org/perl8/test/Test.scala | |
parent | e669339dc394cfa42ae7d7ccae291328dc64e5d8 (diff) | |
download | scala-test-more-90ca99b744e638b569d8a6bba2cc076c9a419cd2.tar.gz scala-test-more-90ca99b744e638b569d8a6bba2cc076c9a419cd2.zip |
add a leading newline to diags when running under a non-raw reporter
makes things easier to read this way, when diags are printed to stderr
interspersed with test summary information
Diffstat (limited to 'src/main/scala/org/perl8/test/Test.scala')
-rw-r--r-- | src/main/scala/org/perl8/test/Test.scala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/scala/org/perl8/test/Test.scala b/src/main/scala/org/perl8/test/Test.scala index a348871..9868174 100644 --- a/src/main/scala/org/perl8/test/Test.scala +++ b/src/main/scala/org/perl8/test/Test.scala @@ -6,5 +6,11 @@ trait Test { /** Runs the test. The TAP stream will be written to Console.out and * Console.err, so you can swap these out as required in order to parse it. */ - def run: Int + def run: Int = + runTests(false) + + def runRaw: Int = + runTests(true) + + protected def runTests (raw: Boolean): Int } |