You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|Test sources are compiled separately (after the 'main' sources), and may use different dependencies, compiler options, and other configurations.
52
52
|A source file is treated as a test source if:
53
-
| - the file name ends with `.test.scala`
53
+
| - the file name ends with `.test.scala` or `.test.java`
54
54
| - the file comes from a directory that is provided as input, and the relative path from that file to its original directory contains a `test` directory
55
55
| - it contains the `//> using target.scope test` directive (Experimental)
Test sources are compiled separately (after the 'main' sources), and may use different dependencies, compiler options, and other configurations.
396
396
A source file is treated as a test source if:
397
-
- the file name ends with `.test.scala`
397
+
- the file name ends with `.test.scala` or `.test.java`
398
398
- the file comes from a directory that is provided as input, and the relative path from that file to its original directory contains a `test` directory
399
399
- it contains the `//> using target.scope test` directive (Experimental)
Test sources are compiled separately (after the 'main' sources), and may use different dependencies, compiler options, and other configurations.
197
197
A source file is treated as a test source if:
198
-
- the file name ends with `.test.scala`
198
+
- the file name ends with `.test.scala` or `.test.java`
199
199
- the file comes from a directory that is provided as input, and the relative path from that file to its original directory contains a `test` directory
200
200
- it contains the `//> using target.scope test` directive (Experimental)
Copy file name to clipboardExpand all lines: website/docs/reference/scala-command/runner-specification.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4069,11 +4069,11 @@ Aliases: `--fmt-version`
4069
4069
## `test` command
4070
4070
**SHOULD have for Scala Runner specification.**
4071
4071
4072
-
Compile and test Scala code.
4072
+
Compile and test Scala (or Java) code.
4073
4073
4074
4074
Test sources are compiled separately (after the 'main' sources), and may use different dependencies, compiler options, and other configurations.
4075
4075
A source file is treated as a test source if:
4076
-
- the file name ends with `.test.scala`
4076
+
- the file name ends with `.test.scala` or `.test.java`
4077
4077
- the file comes from a directory that is provided as input, and the relative path from that file to its original directory contains a `test` directory
4078
4078
- it contains the `//> using target.scope test` directive (Experimental)
0 commit comments