From 00f1e2719d507261f40a494096487b0f0a4bae2f Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Tue, 21 Feb 2017 12:22:31 +0800 Subject: turn `test` into a subproject for easy access to test’s tasks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/scalatest-example/build/build.scala | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'examples') 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 - } + } + } } -- cgit v1.2.3