diff options
author | Katrin Shechtman <katrin.shechtman@gmail.com> | 2016-05-26 22:03:43 -0600 |
---|---|---|
committer | Katrin Shechtman <katrin.shechtman@gmail.com> | 2016-05-26 23:29:10 -0600 |
commit | 4d2971feca87833f48290c15e2331141bcd21351 (patch) | |
tree | ce41b1f9583cdd4262221e583ab9598f1b9fb9f7 /plugins/scalatest/ScalaTest.scala | |
parent | ba203490c976adaa8001c4398e2c5e3befcc8757 (diff) | |
download | cbt-4d2971feca87833f48290c15e2331141bcd21351.tar.gz cbt-4d2971feca87833f48290c15e2331141bcd21351.tar.bz2 cbt-4d2971feca87833f48290c15e2331141bcd21351.zip |
Making scalatest plugin work + example build folder with scalatest sample build
Diffstat (limited to 'plugins/scalatest/ScalaTest.scala')
-rw-r--r-- | plugins/scalatest/ScalaTest.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/scalatest/ScalaTest.scala b/plugins/scalatest/ScalaTest.scala index 0959087..53c6446 100644 --- a/plugins/scalatest/ScalaTest.scala +++ b/plugins/scalatest/ScalaTest.scala @@ -16,8 +16,9 @@ trait SbtLayout extends BasicBuild{ override def sources = Seq( projectDirectory ++ "/src/main/scala" ) def testSources = projectDirectory ++ "/src/test/scala" def testDependencies: Seq[Dependency] = Nil - lazy val testBuild = - new BasicBuild(context.copy(projectDirectory = testSources)) with ScalaTest{ + lazy val testBuild = + new BasicBuild(context) with ScalaTest{ + override def sources = Seq(testSources) override def target = outer.target override def compileTarget = outer.scalaTarget ++ "/test-classes" override def dependencies = (outer +: testDependencies) ++ super.dependencies |