diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-02-20 09:57:53 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-02-20 09:57:53 -0600 |
commit | f3c81a12abb34203e75e4ca8f4a06072f6be782f (patch) | |
tree | b9f5a7e04a0fa6c366ec7724ce4b6ab6e98c62b0 /src/test | |
parent | 5d52686dc9a467a3ce41f34cfdc0c42271a3a7fd (diff) | |
download | scala-test-more-f3c81a12abb34203e75e4ca8f4a06072f6be782f.tar.gz scala-test-more-f3c81a12abb34203e75e4ca8f4a06072f6be782f.zip |
implement skip
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/scala/basic.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/scala/basic.scala b/src/test/scala/basic.scala index 5ee863e..81971ed 100644 --- a/src/test/scala/basic.scala +++ b/src/test/scala/basic.scala @@ -127,4 +127,23 @@ class Basic extends FunSuite { assert(output.toString === expected) } + + test ("skip") { + val output = new ByteArrayOutputStream + val builder = new Builder(output) + + builder.ok(false) + builder.skip("not now") + builder.skip() + builder.doneTesting + + val expected = + "not ok 1\n" + + "ok 2 # skip not now\n" + + "ok 3 # skip\n" + + "1..3\n" + + "# Looks like you failed 1 test of 3.\n" + + assert(output.toString === expected) + } } |