summaryrefslogtreecommitdiff
path: root/docs/pages/2 - Configuring Mill.md
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2019-11-17 14:58:37 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2019-11-17 14:58:37 -0800
commit4e5fec34f11e0fa7678c8f7dd6beae754c4ce3fd (patch)
tree2ffc9c8be31d595f41d66f5d450d56a7cdf5922a /docs/pages/2 - Configuring Mill.md
parent5c81eea50539b0d5d4e3593a61dea101d2e471ce (diff)
downloadmill-4e5fec34f11e0fa7678c8f7dd6beae754c4ce3fd.tar.gz
mill-4e5fec34f11e0fa7678c8f7dd6beae754c4ce3fd.tar.bz2
mill-4e5fec34f11e0fa7678c8f7dd6beae754c4ce3fd.zip
update docs to add a example with test suite
Diffstat (limited to 'docs/pages/2 - Configuring Mill.md')
-rw-r--r--docs/pages/2 - Configuring Mill.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md
index 0df98a5c..1654d685 100644
--- a/docs/pages/2 - Configuring Mill.md
+++ b/docs/pages/2 - Configuring Mill.md
@@ -99,15 +99,17 @@ object YourBuild extends ScalaModule {
import mill._, scalalib._
object foo extends ScalaModule {
- def scalaVersion = "2.12.4"
+ def scalaVersion = "2.13.1"
object test extends Tests {
- def ivyDeps = Agg(ivy"com.lihaoyi::utest:0.6.0")
+ def ivyDeps = Agg(ivy"com.lihaoyi::utest:0.7.1")
def testFrameworks = Seq("utest.runner.Framework")
}
}
```
+- [Example 3](example-3.zip)
+
You can define a test suite by creating a nested module extending `Tests`, and
specifying the ivy coordinates and name of your test framework. This expects the
tests to be laid out as follows:
@@ -116,12 +118,12 @@ tests to be laid out as follows:
build.sc
foo/
src/
- Main.scala
+ Example.scala
resources/
...
test/
src/
- MainTest.scala
+ ExampleTest.scala
resources/
...
out/