Skip to content

Update dotnet-test to reflect latest preview behavior #46279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions docs/core/testing/unit-testing-with-dotnet-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ To address the issues encountered when running `dotnet test` with MTP in VSTest
To enable this mode, add a `dotnet.config` file to the root of the repository or solution.

```ini
[dotnet.test:runner]
[dotnet.test.runner]
name = "Microsoft.Testing.Platform"
```

> [!NOTE]
> The format will change from `dotnet.test:runner` to `dotnet.test.runner` in .NET 10 SDK Preview 4.
> [!IMPORTANT]
> The `dotnet test` experience for MTP is only supported in Microsoft.Testing.Platform version 1.7 and later.
Copy link
Member

@IEvangelist IEvangelist May 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically namespaces, or packages are represented as code elements. If you're trying to refer to the product itself, use the product name instead.

Suggested change
> The `dotnet test` experience for MTP is only supported in Microsoft.Testing.Platform version 1.7 and later.
> The `dotnet test` experience for MTP is only supported in `Microsoft.Testing.Platform` version 1.7 and later.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IEvangelist Well, branding wise, I think the product name is the same as the package name AFAIK. cc @nohwnd and @Evangelink

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we use them interchangeably.


Since this mode is specifically designed for Microsoft.Testing.Platform, neither `TestingPlatformDotnetTestSupport` nor the additional `--` are required.

Expand Down
8 changes: 4 additions & 4 deletions docs/core/tools/dotnet-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ The `dotnet test` command builds the solution and runs the tests with either VST
Some examples of the `dotnet.config` file:

```ini
[dotnet.test:runner]
[dotnet.test.runner]
name = "Microsoft.Testing.Platform"
```

```ini
[dotnet.test:runner]
[dotnet.test.runner]
name = "VSTest"
```

> [!NOTE]
> The format will change from `dotnet.test:runner` to `dotnet.test.runner` in .NET 10 SDK Preview 4.
> [!IMPORTANT]
> The `dotnet test` experience for MTP is only supported in Microsoft.Testing.Platform version 1.7 and later.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> The `dotnet test` experience for MTP is only supported in Microsoft.Testing.Platform version 1.7 and later.
> The `dotnet test` experience for MTP is only supported in `Microsoft.Testing.Platform` version 1.7 and later.


> [!TIP]
> For conceptual documentation about `dotnet test`, see [Testing with dotnet test](../testing/unit-testing-with-dotnet-test.md).
Expand Down