summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.sbt6
-rw-r--r--readme.md3
2 files changed, 7 insertions, 2 deletions
diff --git a/build.sbt b/build.sbt
index a15acc5a..7874c894 100644
--- a/build.sbt
+++ b/build.sbt
@@ -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(
diff --git a/readme.md b/readme.md
index 800903b6..0e179da5 100644
--- a/readme.md
+++ b/readme.md
@@ -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