Skip to content

Commit a4e56c9

Browse files
authored
Update unit testing instructions for migrating to new dotnet test (#48171)
1 parent 353d192 commit a4e56c9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/core/testing/unit-testing-with-dotnet-test.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ For users of MTP that are using the VSTest mode of `dotnet test`, there are few
127127
1. Remove `TestingPlatformDotnetTestSupport` MSBuild property, as it's no longer required.
128128
1. Remove `TestingPlatformCaptureOutput` and `TestingPlatformShowTestsFailure` MSBuild properties, as they are no longer used by the new `dotnet test`.
129129
1. Remove the extra `--`, for example `dotnet test -- --report-trx` should become `dotnet test --report-trx`.
130-
1. If passing a specific solution, for example, `dotnet test MySolution.sln`, this should become `dotnet test --solution MySolution.sln`.
131-
1. If passing a specific project, for example, `dotnet test MyProject.csproj`, this should become `dotnet test --project MyProject.csproj`.
132-
1. If passing a specific directory, for example, `dotnet test path/to/mydirectory`, this should become `dotnet test --directory path/to/mydirectory`
130+
1. If passing a specific solution (or directory containing solution), for example, `dotnet test MySolution.sln`, this should become `dotnet test --solution MySolution.sln`.
131+
1. If passing a specific project (or directory containing project), for example, `dotnet test MyProject.csproj`, this should become `dotnet test --project MyProject.csproj`.
133132
1. If passing a specific dll, for example, `dotnet test path/to/UnitTests.dll`, this should become `dotnet test --test-modules path/to/UnitTests.dll`. Note that `--test-modules` also supports globbing.

0 commit comments

Comments
 (0)