diff options
Diffstat (limited to 'test/test.scala')
-rw-r--r-- | test/test.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala index 0158ddd..65790f8 100644 --- a/test/test.scala +++ b/test/test.scala @@ -202,6 +202,18 @@ object Main{ assert(res.err contains "Build cannot be cast to cbt.BuildInterface", res.err) } + { + val res = runCbt("no-build-file", Seq("run")) + assert(!res.exit0) + assert(res.err contains "No file build.scala (lower case) found in", res.err) + } + + { + val res = runCbt("empty-build-file", Seq("run")) + assert(!res.exit0) + assert(res.err contains "You need to define a class Build in build.scala in", res.err) + } + System.err.println(" DONE!") System.err.println( successes.toString ++ " succeeded, "++ failures.toString ++ " failed" ) if(failures > 0) System.exit(1) else System.exit(0) |