diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-21 12:22:31 +0800 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-27 18:53:27 +0800 |
commit | 00f1e2719d507261f40a494096487b0f0a4bae2f (patch) | |
tree | 9684b673bc9147a70eeca7783d4f455221872966 /examples/scalatest-example | |
parent | af5361b7eaeff292f551848d51cc1e8b0a6851c6 (diff) | |
download | cbt-00f1e2719d507261f40a494096487b0f0a4bae2f.tar.gz cbt-00f1e2719d507261f40a494096487b0f0a4bae2f.tar.bz2 cbt-00f1e2719d507261f40a494096487b0f0a4bae2f.zip |
turn `test` into a subproject for easy access to test’s tasks
Diffstat (limited to 'examples/scalatest-example')
-rw-r--r-- | examples/scalatest-example/build/build.scala | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/scalatest-example/build/build.scala b/examples/scalatest-example/build/build.scala index 48248fd..2c0ec21 100644 --- a/examples/scalatest-example/build/build.scala +++ b/examples/scalatest-example/build/build.scala @@ -1,9 +1,14 @@ import cbt._ class Build(val context: Context) extends SbtLayoutMain { outer => - override def test: Option[ExitCode] = Some{ + /* FIXME: calling `cbt rt` for `examples/scalatest-example` leads to +java.lang.Exception: This should never happend. Could not find (org.scala-lang,scala-reflect) in +(org.scala-lang,scala-library) -> BoundMavenDependency(1488121318000,cbt/cache/maven,MavenDependency(org.scala-lang,scala-library,2.11.8,Classifier(None)),Vector(https://repo1.maven.org/maven2)) + at cbt.Stage1Lib$$anonfun$actual$1.apply(Stage1Lib.scala:425) + */ + override def test: Dependency = { new BasicBuild(context) with ScalaTest with SbtLayoutTest{ override def dependencies = outer +: super.dependencies - }.run - } + } + } } |