From 4e5fec34f11e0fa7678c8f7dd6beae754c4ce3fd Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Sun, 17 Nov 2019 14:58:37 -0800 Subject: update docs to add a example with test suite --- docs/pages/2 - Configuring Mill.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'docs/pages/2 - Configuring Mill.md') 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/ -- cgit v1.2.3