aboutsummaryrefslogtreecommitdiff
path: root/plugins/scalatest/ScalaTest.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-14 00:07:57 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-14 00:34:48 -0500
commit92b26f394460aa609f9d073ea044776e7d8c46fb (patch)
treecb6deceebc0313e2186e686680b51187ddfd0095 /plugins/scalatest/ScalaTest.scala
parentdfde369b30bcde1c60add172e0e91caeb51e541b (diff)
downloadcbt-92b26f394460aa609f9d073ea044776e7d8c46fb.tar.gz
cbt-92b26f394460aa609f9d073ea044776e7d8c46fb.tar.bz2
cbt-92b26f394460aa609f9d073ea044776e7d8c46fb.zip
implicitly pass classloader, might make code easier
and prepares for allowing `run` and `runFlat` at Dependency instead of Build level
Diffstat (limited to 'plugins/scalatest/ScalaTest.scala')
-rw-r--r--plugins/scalatest/ScalaTest.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/scalatest/ScalaTest.scala b/plugins/scalatest/ScalaTest.scala
index 56405aa..21f656b 100644
--- a/plugins/scalatest/ScalaTest.scala
+++ b/plugins/scalatest/ScalaTest.scala
@@ -5,9 +5,8 @@ import org.scalatest._
trait ScalaTest extends BaseBuild{
override def run: ExitCode = {
import ScalaTestLib._
- val _classLoader = classLoader(context.classLoaderCache)
- val suiteNames = exportedClasspath.files.map( d => discoverSuites(d, _classLoader) ).flatten
- runSuites( suiteNames.map( loadSuite( _, _classLoader ) ) )
+ val suiteNames = exportedClasspath.files.map( d => discoverSuites(d, classLoader) ).flatten
+ runSuites( suiteNames.map( loadSuite( _, classLoader ) ) )
ExitCode.Success
}
override def dependencies = super.dependencies ++ Resolver( mavenCentral ).bind( ScalaDependency("org.scalatest","scalatest","2.2.4") )