Skip to content

Commit d34a1be

Browse files
remove --directory (#48054)
1 parent 42c2e39 commit d34a1be

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

docs/core/tools/dotnet-test.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ For more information and examples on how to use selective unit test filtering, s
422422
dotnet test
423423
[--project <PROJECT_PATH>]
424424
[--solution <SOLUTION_PATH>]
425-
[--directory <DIRECTORY_PATH>]
426425
[--test-modules <EXPRESSION>]
427426
[--root-directory <ROOT_PATH>]
428427
[--max-parallel-test-modules <NUMBER>]
@@ -458,20 +457,16 @@ With Microsoft Testing Platform, `dotnet test` operates faster than with VSTest.
458457
#### Options
459458

460459
> [!NOTE]
461-
> You can use only one of the following options at a time: `--project`, `--solution`, `--directory`, or `--test-modules`. These options can't be combined.
460+
> You can use only one of the following options at a time: `--project`, `--solution`, or `--test-modules`. These options can't be combined.
462461
> 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.
463462
464463
- **`--project <PROJECT_PATH>`**
465464

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

468467
- **`--solution <SOLUTION_PATH>`**
469468

470-
Specifies the path to the solution.
471-
472-
- **`--directory <DIRECTORY_PATH>`**
473-
474-
Specifies the path to a directory that contains a project or a solution.
469+
Specifies the path of the solution file to run (folder name or full path). If not specified, it defaults to the current directory.
475470

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

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

581-
- Run the tests in a solution or project that can be found in the `TestProjects` directory:
582-
583-
```dotnetcli
584-
dotnet test --directory ./TestProjects
585-
```
586-
587576
- Run the tests using `TestProject.dll` assembly:
588577

589578
```dotnetcli

0 commit comments

Comments
 (0)