diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-04-02 00:13:25 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-04-02 02:43:39 -0400 |
commit | c220ef8d12e77ce6af6fafde3b388fc3e334b380 (patch) | |
tree | 47ff329caae3a38abe06e696c79acd198e2b0613 /stage2/plugins/ScalaTest.scala | |
parent | 8016298a6ae89ed1c8a45bde87411db4a2daf86f (diff) | |
download | cbt-c220ef8d12e77ce6af6fafde3b388fc3e334b380.tar.gz cbt-c220ef8d12e77ce6af6fafde3b388fc3e334b380.tar.bz2 cbt-c220ef8d12e77ce6af6fafde3b388fc3e334b380.zip |
scalatest plugin now does not need import anymore
Diffstat (limited to 'stage2/plugins/ScalaTest.scala')
-rw-r--r-- | stage2/plugins/ScalaTest.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/stage2/plugins/ScalaTest.scala b/stage2/plugins/ScalaTest.scala new file mode 100644 index 0000000..29a0777 --- /dev/null +++ b/stage2/plugins/ScalaTest.scala @@ -0,0 +1,11 @@ +package cbt +import java.io.File +trait ScalaTest extends BaseBuild { + override def dependencies = super.dependencies :+ libraries.cbt.scalatestRunner + override def run: ExitCode = { + classLoader.loadClass( "cbt.scalatest.Runner" ).method( + "run", classOf[Array[File]], classOf[ClassLoader] + ).invoke( null, exportedClasspath.files.toArray, classLoader ) + ExitCode.Success + } +} |