Skip to content

Commit 573cb91

Browse files
committed
.
1 parent f2cb223 commit 573cb91

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

example/javalib/basic/5-multi-module/build.mill

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@ object bar extends MyModule {
1919
mvn"org.thymeleaf:thymeleaf:3.1.1.RELEASE"
2020
)
2121
}
22+
23+
//// SNIPPET:TEST
24+
/** Usage
25+
26+
> ./mill bar.test
27+
Test bar.BarTests.simple finished...
28+
Test bar.BarTests.escaping finished...
29+
*/
30+
//// SNIPPET:END

example/kotlinlib/basic/5-multi-module/build.mill

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,12 @@ object bar extends MyModule {
2525
mvn"org.jetbrains.kotlinx:kotlinx-html:0.11.0"
2626
)
2727
}
28+
29+
//// SNIPPET:TEST
30+
/** Usage
31+
32+
> ./mill bar.test
33+
Test bar.BarTests simple finished...
34+
Test bar.BarTests escaping finished...
35+
*/
36+
//// SNIPPET:END

example/scalalib/basic/5-multi-module/build.mill

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,18 @@ object bar extends MyModule {
3333
// `mvnDeps` specific to a particular module. This is a common pattern within Mill builds.
3434
//
3535

36-
36+
//// SNIPPET:TEST
3737
/** Usage
3838

3939
> ./mill bar.test
4040
+ bar.BarTests.simple...
4141
+ bar.BarTests.escaping...
42-
43-
> ./mill foo.run --text hello
44-
<h1>hello</h1>
42+
*/
43+
//// SNIPPET:END
44+
/** Usage
45+
> ./mill foo.run --foo-text hello --bar-text world
46+
Foo.value: hello
47+
Bar.value: <h1>world</h1>
4548

4649
*/
4750

integration/failure/missing-build-file/src/MissingBuildFileTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ object MissingBuildFileTests extends UtestIntegrationTestSuite {
99
val res = tester.eval(("resolve", "_"))
1010
assert(!res.isSuccess)
1111

12-
val s"${prefix}No build file (build.mill, build.mill.scala, build.sc) found in $msg. Are you in a Mill project directory?" =
12+
val s"${prefix}No build file (build.mill.yaml, build.mill, build.mill.scala, build.sc) found in $msg. Are you in a Mill project directory?" =
1313
res.err: @unchecked
1414
// Silence unused variable warning
1515
val _ = prefix

0 commit comments

Comments
 (0)