aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-02-20 01:16:16 -0600
committerJesse Luehrs <doy@tozt.net>2013-02-20 02:22:38 -0600
commit68d6175dcc32b732592de9a781e7720c99e8e4fd (patch)
tree05c980d2cf67cb30df8e66e56a8e3211b7515e22 /src/test
parent5cd7dddf8e65adda61716bfc72d3e9d552ccabb8 (diff)
downloadscala-test-more-68d6175dcc32b732592de9a781e7720c99e8e4fd.tar.gz
scala-test-more-68d6175dcc32b732592de9a781e7720c99e8e4fd.zip
implement skip all
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/basic.scala20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/scala/basic.scala b/src/test/scala/basic.scala
index 30db4dc..5ee863e 100644
--- a/src/test/scala/basic.scala
+++ b/src/test/scala/basic.scala
@@ -107,4 +107,24 @@ class Basic extends FunSuite {
assert(output.toString === expected)
}
+
+ test ("skip all") {
+ val output = new ByteArrayOutputStream
+ val builder = new Builder(SkipAll(), output)
+
+ val expected =
+ "1..0 # SKIP\n"
+
+ assert(output.toString === expected)
+ }
+
+ test ("skip all with reason") {
+ val output = new ByteArrayOutputStream
+ val builder = new Builder(SkipAll("foo bar"), output)
+
+ val expected =
+ "1..0 # SKIP foo bar\n"
+
+ assert(output.toString === expected)
+ }
}