diff options
Diffstat (limited to 'docs/pages')
-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") } } ``` |