summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBjørn Madsen <bm@aeons.dk>2018-02-19 22:57:18 +0100
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-19 13:57:18 -0800
commit790c21c976e5c2944ba7f729e0c5762de8f51baf (patch)
treee2885f74419acd447c4befc2d2ce39f8d1453877 /docs
parentac99d84530c02078c62e743750084cf2972caed2 (diff)
downloadmill-790c21c976e5c2944ba7f729e0c5762de8f51baf.tar.gz
mill-790c21c976e5c2944ba7f729e0c5762de8f51baf.tar.bz2
mill-790c21c976e5c2944ba7f729e0c5762de8f51baf.zip
Add missing import and clarify docs on testing framework (#140)
* Add missing import and clarify docs on testing framework * Move `Custom test frameworks` section to `Adding a Test Suite`
Diffstat (limited to 'docs')
-rw-r--r--docs/pages/2 - Configuring Mill.md37
1 files changed, 19 insertions, 18 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md
index 1f733dbc..3c6ec696 100644
--- a/docs/pages/2 - Configuring Mill.md
+++ b/docs/pages/2 - Configuring Mill.md
@@ -62,6 +62,8 @@ By default these are resolved from maven central, but you can add your own
resolvers by overriding the `repositories` definition in the module:
```scala
+import coursier.maven.MavenRepository
+
def repositories = super.repositories ++ Seq(
MavenRepository("https://oss.sonatype.org/content/repositories/releases")
)
@@ -154,6 +156,23 @@ Each of which will expect their sources to be in their respective `foo/test` and
`Tests` modules are `ScalaModule`s like any other, and all the same
configuration options apply.
+## Custom Test Frameworks
+
+```scala
+// build.sc
+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"
+}
+```
+
+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
+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`
## Scala Compiler Plugins
@@ -354,24 +373,6 @@ compilation output, but if there is more than one or the main class comes from
some library you cna explicitly specify which one to use. This also adds the
main class to your `foo.jar` and `foo.assembly` jars.
-## Custom Test Frameworks
-
-```scala
-// build.sc
-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"
-}
-```
-
-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
-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`
-
## Downloading Non-Maven Jars
```scala