diff options
author | Nikolay Tatarinov <5min4eq.unity@gmail.com> | 2018-02-22 11:18:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 11:18:45 +0300 |
commit | 2cbc8d403715bc909325c9323ef58ffb47b22e1f (patch) | |
tree | 3cebde274f4f31a643e6d9c9d728b01d83649130 /docs | |
parent | 107ba88754673e08b030b9ba1c8f4e6f1eefd13d (diff) | |
download | mill-2cbc8d403715bc909325c9323ef58ffb47b22e1f.tar.gz mill-2cbc8d403715bc909325c9323ef58ffb47b22e1f.tar.bz2 mill-2cbc8d403715bc909325c9323ef58ffb47b22e1f.zip |
support multiple test frameworks (#148)
support multiple test frameworks
Diffstat (limited to 'docs')
-rw-r--r-- | docs/pages/2 - Configuring Mill.md | 10 | ||||
-rw-r--r-- | docs/pages/6 - Extending Mill.md | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md index d976aa57..04d75f1a 100644 --- a/docs/pages/2 - Configuring Mill.md +++ b/docs/pages/2 - Configuring Mill.md @@ -81,7 +81,7 @@ object foo extends ScalaModule { object test extends Tests{ def ivyDeps = Agg(ivy"com.lihaoyi::utest:0.6.0") - def testFramework = "mill.UTestFramework" + def testFrameworks = Seq("mill.UTestFramework") } } ``` @@ -143,11 +143,11 @@ object foo extends ScalaModule { object test extends Tests{ def ivyDeps = Agg(ivy"com.lihaoyi::utest:0.6.0") - def testFramework = "mill.UTestFramework" + def testFrameworks = Seq("mill.UTestFramework") } object integration extends Tests{ def ivyDeps = Agg(ivy"com.lihaoyi::utest:0.6.0") - def testFramework = "mill.UTestFramework" + def testFrameworks = Seq("mill.UTestFramework") } } ``` @@ -167,12 +167,12 @@ import mill._, scalalib._ object foo extends ScalaModule { def scalaVersion = "2.12.4" def ivyDeps = Agg(ivy"org.scalatest::scalatest:3.0.4") - def testFramework = "org.scalatest.tools.Framework" + def testFrameworks = Seq("org.scalatest.tools.Framework") } ``` Integrating with test frameworks like Scalatest is simply a matter of adding it -to `ivyDeps` and specifying the `testFramework` you want to use. After that you +to `ivyDeps` and specifying the `testFrameworks` you want to use. After that you can [add a test suite](#adding-a-test-suite) and `mill foo.test` as usual, passing args to the test suite via `mill foo.test arg1 arg2 arg3` diff --git a/docs/pages/6 - Extending Mill.md b/docs/pages/6 - Extending Mill.md index e5b655f5..a6c096a6 100644 --- a/docs/pages/6 - Extending Mill.md +++ b/docs/pages/6 - Extending Mill.md @@ -104,7 +104,7 @@ trait FooModule extends ScalaModule{ def scalaVersion = "2.11.11" object test extends Tests{ def ivyDeps = Agg(ivy"org.scalatest::scalatest:3.0.4") - def testFramework = "org.scalatest.tools.Framework" + def testFrameworks = Seq("org.scalatest.tools.Framework") } } ``` |