summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc21
1 files changed, 6 insertions, 15 deletions
diff --git a/build.sc b/build.sc
index 08a5f3b9..494d13b1 100755
--- a/build.sc
+++ b/build.sc
@@ -35,25 +35,16 @@ object Core extends ScalaModule {
PathRef(dest)
}
}
-}
-object CoreTests extends ScalaModule {
- def scalaVersion = "2.12.4"
- override def projectDeps = Seq(Core)
- def basePath = pwd / 'scalaplugin
- override def sources = pwd/'core/'src/'test/'scala
- override def ivyDeps = Seq(
- Dep("com.lihaoyi", "utest", "0.6.0")
- )
- def test() = T.command{
- TestRunner.apply(
- "mill.UTestFramework",
- runDepClasspath().map(_.path) :+ compile().path,
- Seq(compile().path)
- )
+ object tests extends this.Tests{
+ def basePath = pwd / 'core
+ override def ivyDeps = Seq(Dep("com.lihaoyi", "utest", "0.6.0"))
+ override def sources = pwd/'core/'src/'test/'scala
+ def testFramework = "mill.UTestFramework"
}
}
+
object ScalaPlugin extends ScalaModule {
def scalaVersion = "2.12.4"
override def projectDeps = Seq(Core)