Skip to content

Commit

Permalink
Fix test.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejG604 committed Jan 16, 2024
1 parent 86f1169 commit 5e07abf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions website/docs/commands/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@ Test sources are compiled separately (after the 'main' sources), and may use dif
and other configurations.

By default, all command line options apply to both the main and test sources,
so [using directives](../guides/introduction/using-directives.md) (
or [special imports](../guides/introduction/configuration#special-imports)) can be used to provide test-specific configurations.
so [using directives](../guides/introduction/using-directives.md) can be used to provide test-specific configurations.

## Test sources

A source file is treated as test source if:

- the file name ends with `.test.scala`, or
- 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
- it contains the `//> using target.scope test` directive, or
directory contains a `test` directory, or
- it contains the `//> using target.scope test` directive

:::caution
The `using target` directives are an experimental feature, and may change in future versions of Scala CLI.
:::

The last rule may sound a bit complicated, so let's explain it using following directory structure:
The second rule may sound a bit complicated, so let's explain it using following directory structure:

<ChainedSnippets>

Expand Down

0 comments on commit 5e07abf

Please sign in to comment.