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
Copy file name to clipboardExpand all lines: docs/core/tools/dotnet-test.md
+3-14Lines changed: 3 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -422,7 +422,6 @@ For more information and examples on how to use selective unit test filtering, s
422
422
dotnet test
423
423
[--project <PROJECT_PATH>]
424
424
[--solution <SOLUTION_PATH>]
425
-
[--directory <DIRECTORY_PATH>]
426
425
[--test-modules <EXPRESSION>]
427
426
[--root-directory <ROOT_PATH>]
428
427
[--max-parallel-test-modules <NUMBER>]
@@ -458,20 +457,16 @@ With Microsoft Testing Platform, `dotnet test` operates faster than with VSTest.
458
457
#### Options
459
458
460
459
> [!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.
462
461
> 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.
463
462
464
463
-**`--project <PROJECT_PATH>`**
465
464
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.
467
466
468
467
-**`--solution <SOLUTION_PATH>`**
469
468
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.
475
470
476
471
-**`--test-modules <EXPRESSION>`**
477
472
@@ -578,12 +573,6 @@ With Microsoft Testing Platform, `dotnet test` operates faster than with VSTest.
578
573
dotnet test --solution ./TestProjects/TestProjects.sln
579
574
```
580
575
581
-
- Run the tests in a solution or project that can be found in the `TestProjects` directory:
0 commit comments