diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-14 04:25:56 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-14 04:47:18 -0800 |
commit | de96a55c3267bb1508e77a6815007807e3fd73fb (patch) | |
tree | 6aea7c19e363975ce14396b4ed33998b458ff145 /scalajslib | |
parent | 478bf87d3f140eaf2671663b5b3c1758354ec856 (diff) | |
download | mill-de96a55c3267bb1508e77a6815007807e3fd73fb.tar.gz mill-de96a55c3267bb1508e77a6815007807e3fd73fb.tar.bz2 mill-de96a55c3267bb1508e77a6815007807e3fd73fb.zip |
Some tweaks to get tests passing...
Diffstat (limited to 'scalajslib')
-rw-r--r-- | scalajslib/src/test/scala/mill/scalajslib/HelloJSWorldTests.scala | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/scalajslib/src/test/scala/mill/scalajslib/HelloJSWorldTests.scala b/scalajslib/src/test/scala/mill/scalajslib/HelloJSWorldTests.scala index fce52c87..ca580d71 100644 --- a/scalajslib/src/test/scala/mill/scalajslib/HelloJSWorldTests.scala +++ b/scalajslib/src/test/scala/mill/scalajslib/HelloJSWorldTests.scala @@ -13,20 +13,24 @@ import utest._ import scala.collection.JavaConverters._ -trait HelloJSWorldModule extends ScalaJSModule with PublishModule { - override def basePath = HelloJSWorldTests.workspacePath - override def mainClass = Some("Main") -} -object HelloJSWorld extends TestUtil.BaseModule { - val matrix = for { - scalaJS <- Seq("0.6.20", "0.6.21", "1.0.0-M2") - scala <- Seq("2.11.8", "2.12.3", "2.12.4") - } yield (scalaJS, scala) +object HelloJSWorldTests extends TestSuite { + + + trait HelloJSWorldModule extends ScalaJSModule with PublishModule { + override def basePath = HelloJSWorldTests.workspacePath + override def mainClass = Some("Main") + } + + object HelloJSWorld extends TestUtil.BaseModule { + val matrix = for { + scalaJS <- Seq("0.6.20", "0.6.21", "1.0.0-M2") + scala <- Seq("2.11.8", "2.12.3", "2.12.4") + } yield (scalaJS, scala) - object build extends Cross[BuildModule](matrix:_*) + object build extends Cross[BuildModule](matrix:_*) - class BuildModule(sjsVersion0: String, scalaVersion0: String) extends HelloJSWorldModule { + class BuildModule(sjsVersion0: String, scalaVersion0: String) extends HelloJSWorldModule { def scalaVersion = scalaVersion0 def scalaJSVersion = sjsVersion0 def pomSettings = PomSettings( @@ -35,7 +39,7 @@ object HelloJSWorld extends TestUtil.BaseModule { url = "https://github.com/lihaoyi/hello-world-publish", licenses = Seq( License("Apache License, Version 2.0", - "http://www.apache.org/licenses/LICENSE-2.0")), + "http://www.apache.org/licenses/LICENSE-2.0")), scm = SCM( "https://github.com/lihaoyi/hello-world-publish", "scm:git:https://github.com/lihaoyi/hello-world-publish" @@ -44,9 +48,7 @@ object HelloJSWorld extends TestUtil.BaseModule { Seq(Developer("lihaoyi", "Li Haoyi", "https://github.com/lihaoyi")) ) } -} - -object HelloJSWorldTests extends TestSuite { + } val srcPath = pwd / 'scalajslib / 'src / 'test / 'resources / "hello-js-world" val workspacePath = pwd / 'target / 'workspace / "hello-js-world" |