Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions docs/core/tools/dotnet-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ For more information and examples on how to use selective unit test filtering, s
dotnet test
[--project <PROJECT_PATH>]
[--solution <SOLUTION_PATH>]
[--directory <DIRECTORY_PATH>]
[--test-modules <EXPRESSION>]
[--root-directory <ROOT_PATH>]
[--max-parallel-test-modules <NUMBER>]
Expand Down Expand Up @@ -458,20 +457,16 @@ With Microsoft Testing Platform, `dotnet test` operates faster than with VSTest.
#### Options

> [!NOTE]
> You can use only one of the following options at a time: `--project`, `--solution`, `--directory`, or `--test-modules`. These options can't be combined.
> You can use only one of the following options at a time: `--project`, `--solution`, or `--test-modules`. These options can't be combined.
> In addition, when using `--test-modules`, you can't specify `--arch`, `--configuration`, `--framework`, `--os`, or `--runtime`. These options are not relevant for an already-built module.

- **`--project <PROJECT_PATH>`**

Specifies the path to the test project.
Specifies the path of the project file to run (folder name or full path). If not specified, it defaults to the current directory.

- **`--solution <SOLUTION_PATH>`**

Specifies the path to the solution.

- **`--directory <DIRECTORY_PATH>`**

Specifies the path to a directory that contains a project or a solution.
Specifies the path of the solution file to run (folder name or full path). If not specified, it defaults to the current directory.

- **`--test-modules <EXPRESSION>`**

Expand Down Expand Up @@ -578,12 +573,6 @@ With Microsoft Testing Platform, `dotnet test` operates faster than with VSTest.
dotnet test --solution ./TestProjects/TestProjects.sln
```

- Run the tests in a solution or project that can be found in the `TestProjects` directory:

```dotnetcli
dotnet test --directory ./TestProjects
```

- Run the tests using `TestProject.dll` assembly:

```dotnetcli
Expand Down
Loading