diff --git a/docs/core/testing/unit-testing-with-dotnet-test.md b/docs/core/testing/unit-testing-with-dotnet-test.md index a23bf004d987c..9f4bda13f2d80 100644 --- a/docs/core/testing/unit-testing-with-dotnet-test.md +++ b/docs/core/testing/unit-testing-with-dotnet-test.md @@ -90,11 +90,14 @@ To address the issues encountered when running `dotnet test` with MTP in VSTest To enable this mode, you should add a `dotnet.config` file to the root of the repository or solution. -```toml +```ini [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. + Since this mode is specifically designed for Microsoft.Testing.Platform, neither `TestingPlatformDotnetTestSupport` nor the additional `--` are required. > [!IMPORTANT] diff --git a/docs/core/tools/dotnet-test.md b/docs/core/tools/dotnet-test.md index 4da19390f4b93..2e9a5afbf0ab9 100644 --- a/docs/core/tools/dotnet-test.md +++ b/docs/core/tools/dotnet-test.md @@ -11,20 +11,23 @@ ms.date: 03/27/2024 ## Description -The `dotnet test` command builds the solution and runs the tests with either VSTest or Microsoft Testing Platform (MTP). To enable MTP, you need to add a config file named `dotnet.config` with TOML format located at the root of the solution or repository. +The `dotnet test` command builds the solution and runs the tests with either VSTest or Microsoft Testing Platform (MTP). To enable MTP, you need to add a config file named `dotnet.config` with an INI-like format located at the root of the solution or repository. Some examples of the `dotnet.config` file: - ```toml + ```ini [dotnet.test:runner] name = "Microsoft.Testing.Platform" ``` - ```toml + ```ini [dotnet.test:runner] name = "VSTest" ``` +> [!NOTE] +> The format will change from `dotnet.test:runner` to `dotnet.test.runner` in .NET 10 SDK Preview 4. + > [!TIP] > For conceptual documentation about `dotnet test`, see [Testing with dotnet test](../testing/unit-testing-with-dotnet-test.md).