diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-12 15:01:59 +0100 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-12 15:01:59 +0100 |
commit | fdab46408ebc1d593794979d21a47a7eb7c2ac22 (patch) | |
tree | adc99767f2cdbabe4f27125388746d760d67be08 /test/test.scala | |
parent | 2930f91593ccdb750345b65609e88cd187d8351f (diff) | |
download | cbt-fdab46408ebc1d593794979d21a47a7eb7c2ac22.tar.gz cbt-fdab46408ebc1d593794979d21a47a7eb7c2ac22.tar.bz2 cbt-fdab46408ebc1d593794979d21a47a7eb7c2ac22.zip |
test for good error message when Build did not extend BaseBuild
Diffstat (limited to 'test/test.scala')
-rw-r--r-- | test/test.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala index e5ec1f9..0158ddd 100644 --- a/test/test.scala +++ b/test/test.scala @@ -196,6 +196,11 @@ object Main{ task("fullOptJS","../examples/scalajs-react-example/js") compile("../examples/uber-jar-example") + { + val res = runCbt("forgot-extend", Seq("run")) + assert(!res.exit0) + assert(res.err contains "Build cannot be cast to cbt.BuildInterface", res.err) + } System.err.println(" DONE!") System.err.println( successes.toString ++ " succeeded, "++ failures.toString ++ " failed" ) |