aboutsummaryrefslogtreecommitdiff
path: root/test/test.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-10-13 01:50:48 +0000
committerChristopher Vogt <oss.nsp@cvogt.org>2016-10-13 23:21:04 -0400
commitbf4ea112fe668fb7e2e95a2baca4989b16384783 (patch)
tree7baca608433441e480827cbba9e25078c8a6969a /test/test.scala
parentcf94008b6fded5f58cea764d48beb0dcbbd4bb97 (diff)
downloadcbt-bf4ea112fe668fb7e2e95a2baca4989b16384783.tar.gz
cbt-bf4ea112fe668fb7e2e95a2baca4989b16384783.tar.bz2
cbt-bf4ea112fe668fb7e2e95a2baca4989b16384783.zip
tests for stderr and out behaving correctly for example of docJar
Diffstat (limited to 'test/test.scala')
-rw-r--r--test/test.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala
index 8845528..685d7ce 100644
--- a/test/test.scala
+++ b/test/test.scala
@@ -71,6 +71,7 @@ object Main{
val res = runCbt(path, Seq(name))
val debugToken = name ++ " " ++ path ++ " "
assertSuccess(res,debugToken)
+ res
// assert(res.err == "", res.err) // FIXME: enable this
}
@@ -211,6 +212,13 @@ object Main{
compile("../examples/uber-jar-example")
{
+ val res = task("docJar","library-test")
+ assert( res.out endsWith "library-test_2.11-0.1-javadoc.jar" )
+ assert( res.err startsWith "model contains" )
+ assert( res.err endsWith "documentable templates" )
+ }
+
+ {
val res = runCbt("simple", Seq("printArgs","1","2","3"))
assert(res.exit0)
assert(res.out == "1 2 3", res.out)