diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-17 23:49:38 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-17 23:49:38 -0800 |
commit | cb40d831b4281bd8bfdbd3302deaf752c8ca8e33 (patch) | |
tree | b9358e051ebfd5285e7361d54584724b6c0c5a09 /docs/pages/2 - Configuring Mill.md | |
parent | 0013898d7628980f920dba7eed68153b36fd26fb (diff) | |
download | mill-cb40d831b4281bd8bfdbd3302deaf752c8ca8e33.tar.gz mill-cb40d831b4281bd8bfdbd3302deaf752c8ca8e33.tar.bz2 mill-cb40d831b4281bd8bfdbd3302deaf752c8ca8e33.zip |
tweak-docs
Diffstat (limited to 'docs/pages/2 - Configuring Mill.md')
-rw-r--r-- | docs/pages/2 - Configuring Mill.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md index 4755416c..e6634c75 100644 --- a/docs/pages/2 - Configuring Mill.md +++ b/docs/pages/2 - Configuring Mill.md @@ -29,6 +29,14 @@ mill foo.runLocal Which runs it in-process within an isolated classloader. This may be faster since you avoid the JVM startup, but does not support `forkArgs` or `forkEnv`. +If you want to pass main-method arguments to `run` or `runLocal`, simply pass +them after the `foo.run`/`foo.runLocal`: + +```bash +mill foo.run arg1 arg2 arg3 +mill foo.runLocal arg1 arg2 arg3 +``` + ## Adding Ivy Dependencies ```scala @@ -111,6 +119,14 @@ mill foo.test.testLocal To run tests in-process in an isolated classloader. +If you want to pass any arguments to the test framework, simply put them after +`foo.test` in the command line. e.g. [uTest](https://github.com/lihaoyi/utest) +lets you pass in a selector to decide which test to run, which in Mill would be: + +```bash +mill foo.MyTestSuite.testCaseName +``` + You can define multiple test suites if you want, e.g.: ```scala |