diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-26 18:20:49 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-26 18:20:49 -0800 |
commit | 761b0297b44a491b2874068eefcccbbfccec2804 (patch) | |
tree | 8e6744d777b4068ed243a8d3043f3c376576f4db | |
parent | 38696126bbfb719f1005f617f0b2a77754ab0813 (diff) | |
download | mill-761b0297b44a491b2874068eefcccbbfccec2804.tar.gz mill-761b0297b44a491b2874068eefcccbbfccec2804.tar.bz2 mill-761b0297b44a491b2874068eefcccbbfccec2804.zip |
Simplify manual testing using SBT
-rw-r--r-- | build.sbt | 5 | ||||
-rw-r--r-- | readme.md | 16 |
2 files changed, 15 insertions, 6 deletions
@@ -125,15 +125,16 @@ lazy val scalaplugin = project sharedSettings, pluginSettings, name := "mill-scalaplugin", - fork in Test := true, + fork := true, baseDirectory in Test := (baseDirectory in Test).value / "..", - javaOptions in Test := bridgeProps.value.toSeq + javaOptions := bridgeProps.value.toSeq ) lazy val bin = project .dependsOn(scalaplugin) .settings( sharedSettings, + mainClass in (Compile, run) := Some("mill.Main"), assemblyOption in assembly := { (assemblyOption in assembly).value.copy( prependShellScript = Some( @@ -28,13 +28,21 @@ e.g.: ./bin/target/mill run ScalaPlugin.assembly ``` -there is already a `watch` option that looks for changes on files, e.g.: +There is already a `watch` option that looks for changes on files, e.g.: ```bash ./bin/target/mill --watch run Core.compile ``` -output will be generated into a the `./out` folder. +Output will be generated into a the `./out` folder. + +If you are repeatedly testing Mill manually by running it against the `build.sc` +file in the repository root, you can skip the assembly process and directly run +it via: + +```bash +sbt "~bin/run Core.test" +``` Lastly, you can generate IntelliJ Scala project files using Mill via @@ -123,10 +131,10 @@ git clean -xdf sbt bin/test:assembly # Build Mill executable using the Mill executable generated by SBT -bin/target/mill run assembly +bin/target/mill devAssembly # Build Mill executable using the Mill executable generated by Mill itself -out/assembly run assembly +out/devAssembly devAssembly ``` Eventually, as Mill stabilizes, we will get rid of the SBT build entirely and |