From 1a91aaa2cb7a90e4a39cf8315f1e8e0449254a23 Mon Sep 17 00:00:00 2001 From: mariam-abdulla Date: Thu, 21 Aug 2025 10:28:24 +0200 Subject: [PATCH] remove --directory --- docs/core/tools/dotnet-test.md | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/docs/core/tools/dotnet-test.md b/docs/core/tools/dotnet-test.md index a5f765d6f3b59..a273970afb8de 100644 --- a/docs/core/tools/dotnet-test.md +++ b/docs/core/tools/dotnet-test.md @@ -422,7 +422,6 @@ For more information and examples on how to use selective unit test filtering, s dotnet test [--project ] [--solution ] - [--directory ] [--test-modules ] [--root-directory ] [--max-parallel-test-modules ] @@ -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 `** - 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 `** - Specifies the path to the solution. - -- **`--directory `** - - 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 `** @@ -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