@@ -46,6 +46,8 @@ compiling 2 ... source...
4646
4747*/
4848
49+ // === Common Test Framework Support
50+ //
4951// For convenience, you can also use one of the predefined test frameworks:
5052//
5153// * `TestModule.Junit4`, using https://github.com/sbt/junit-interface[sbt/junit-interface]
@@ -94,6 +96,8 @@ object bar extends ScalaModule {
9496
9597*/
9698
99+ // === Running Tests
100+ //
97101// Mill provides three ways of running tests
98102/** Usage
99103> ./mill foo.test
@@ -130,25 +134,22 @@ object bar extends ScalaModule {
130134// xref:javalib/module-config.adoc#_classpath_and_filesystem_resources[Classpath and Filesystem Resources]
131135// for more details.
132136//
133- // If you want to pass any arguments to the test framework, you can pass them after
134- // `foo.test` in the command line. e.g. {utest-github-url}[uTest]
135- // lets you pass in a selector to decide which test to run, which in Mill would be:
137+ // === Selecting Test Classes or Test Cases
138+ // Note that `testOnly` only works at a class-level granularity. To select tests to run on a
139+ // finer-grained test-case or method-level granularity, you need to pass parameters to the
140+ // test framework at the command line.
136141
137142//// SNIPPET:RUNSINGLE
143+ // e.g. {utest-github-url}[uTest framework] used in this example lets you pass in a
144+ // selector to decide which individual test case to run via:
138145/** Usage
139146
140147> ./mill foo.test foo.FooMoreTests
141148...foo.FooMoreTests...hello ...
142149
143- */
144- 
145- //// SNIPPET:END
146- 
147- /** Usage
148- 
149150> ./mill bar.test bar.BarTests.hello
150151...bar.BarTests...hello ...
151152
152153*/
153154
154- // This command only runs the `hello` test case in the `bar.BarTests` test suite class. 
155+ //// SNIPPET:END 
0 commit comments