File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,23 +10,22 @@ Test sources are compiled separately (after the 'main' sources), and may use dif
10
10
and other configurations.
11
11
12
12
By default, all command line options apply to both the main and test sources,
13
- so [ using directives] ( ../guides/introduction/using-directives.md ) (
14
- or [ special imports] ( ../guides/introduction/configuration#special-imports ) ) can be used to provide test-specific configurations.
13
+ so [ using directives] ( ../guides/introduction/using-directives.md ) can be used to provide test-specific configurations.
15
14
16
15
## Test sources
17
16
18
17
A source file is treated as test source if:
19
18
20
19
- the file name ends with ` .test.scala ` , or
21
20
- the file comes from a directory that is provided as input, and the relative path from that file to its original
22
- directory contains a ` test ` directory
23
- - it contains the ` //> using target.scope test ` directive, or
21
+ directory contains a ` test ` directory, or
22
+ - it contains the ` //> using target.scope test ` directive
24
23
25
24
::: caution
26
25
The ` using target ` directives are an experimental feature, and may change in future versions of Scala CLI.
27
26
:::
28
27
29
- The last rule may sound a bit complicated, so let's explain it using following directory structure:
28
+ The second rule may sound a bit complicated, so let's explain it using following directory structure:
30
29
31
30
<ChainedSnippets >
32
31
You can’t perform that action at this time.
0 commit comments