aboutsummaryrefslogtreecommitdiff
path: root/test/build
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-20 22:41:02 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-27 23:54:13 -0400
commit1bf88c580aedd82dc7e3ebede2ba10e3fecf298e (patch)
tree0cb8ee447d4811661c7a5fea0cfb259ec353cbe6 /test/build
parent9af839c58eec4a6e64a5c200c3ddea6458998916 (diff)
downloadcbt-1bf88c580aedd82dc7e3ebede2ba10e3fecf298e.tar.gz
cbt-1bf88c580aedd82dc7e3ebede2ba10e3fecf298e.tar.bz2
cbt-1bf88c580aedd82dc7e3ebede2ba10e3fecf298e.zip
allow running tests in the same process, forked or forked in direct mode
Diffstat (limited to 'test/build')
-rw-r--r--test/build/build.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/build/build.scala b/test/build/build.scala
index 36261b5..792b34d 100644
--- a/test/build/build.scala
+++ b/test/build/build.scala
@@ -3,5 +3,8 @@ import cbt._
class Build(val context: cbt.Context) extends BaseBuild{
override def dependencies = super.dependencies :+ context.cbtDependency
def apply = run
+ override def run = {
+ classes.flatMap( lib.discoverCbtMain ).head( context )
+ }
def args = context.args
}