diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-28 08:38:18 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-28 08:38:18 -0800 |
commit | 02522c54bc94bb3799256173394d8af0821864a9 (patch) | |
tree | 2c132270a24c614ea9132cfd3cc772cdae54f3eb | |
parent | 40104303cdc1e8bf05010b29a4213cd1369fb175 (diff) | |
download | mill-02522c54bc94bb3799256173394d8af0821864a9.tar.gz mill-02522c54bc94bb3799256173394d8af0821864a9.tar.bz2 mill-02522c54bc94bb3799256173394d8af0821864a9.zip |
get --repl working with bin/test:run
-rw-r--r-- | build.sbt | 6 | ||||
-rw-r--r-- | readme.md | 3 |
2 files changed, 7 insertions, 2 deletions
@@ -135,7 +135,11 @@ lazy val bin = project .dependsOn(scalaplugin) .settings( sharedSettings, - mainClass in (Compile, run) := Some("mill.Main"), + fork := true, + connectInput in (Test, run) := true, + outputStrategy in (Test, run) := Some(StdoutOutput), + mainClass in (Test, run) := Some("mill.Main"), + baseDirectory in (Test, run) := (baseDirectory in (Compile, run)).value / "..", assemblyOption in assembly := { (assemblyOption in assembly).value.copy( prependShellScript = Some( @@ -41,7 +41,8 @@ file in the repository root, you can skip the assembly process and directly run it via: ```bash -sbt "~bin/run Core.test" +sbt "~bin/test:run Core.test" +sbt "~bin/test:run --repl" ``` Lastly, you can generate IntelliJ Scala project files using Mill via |