From 4e61a6dc74ad26d36decfd0954492089954b87f7 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Wed, 21 May 2025 09:37:41 +0200 Subject: [PATCH 1/3] Update dotnet-test to reflect latest preview behavior --- docs/core/tools/dotnet-test.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/core/tools/dotnet-test.md b/docs/core/tools/dotnet-test.md index 2e9a5afbf0ab9..a3b929ad47a59 100644 --- a/docs/core/tools/dotnet-test.md +++ b/docs/core/tools/dotnet-test.md @@ -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. > [!TIP] > For conceptual documentation about `dotnet test`, see [Testing with dotnet test](../testing/unit-testing-with-dotnet-test.md). From ffa4421013181c97d8672db447b5996d6e47e27a Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Wed, 21 May 2025 09:39:00 +0200 Subject: [PATCH 2/3] Update unit-testing-with-dotnet-test.md --- docs/core/testing/unit-testing-with-dotnet-test.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/core/testing/unit-testing-with-dotnet-test.md b/docs/core/testing/unit-testing-with-dotnet-test.md index 64505d8d07fcf..4f7c73feb2965 100644 --- a/docs/core/testing/unit-testing-with-dotnet-test.md +++ b/docs/core/testing/unit-testing-with-dotnet-test.md @@ -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. Since this mode is specifically designed for Microsoft.Testing.Platform, neither `TestingPlatformDotnetTestSupport` nor the additional `--` are required. From dabcff1a14f1ac9f8bed65189ba0734fb67d2c78 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 6 Jun 2025 13:00:03 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: David Pine --- docs/core/testing/unit-testing-with-dotnet-test.md | 2 +- docs/core/tools/dotnet-test.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/testing/unit-testing-with-dotnet-test.md b/docs/core/testing/unit-testing-with-dotnet-test.md index 4f7c73feb2965..21ed225fda359 100644 --- a/docs/core/testing/unit-testing-with-dotnet-test.md +++ b/docs/core/testing/unit-testing-with-dotnet-test.md @@ -95,7 +95,7 @@ name = "Microsoft.Testing.Platform" ``` > [!IMPORTANT] -> 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. Since this mode is specifically designed for Microsoft.Testing.Platform, neither `TestingPlatformDotnetTestSupport` nor the additional `--` are required. diff --git a/docs/core/tools/dotnet-test.md b/docs/core/tools/dotnet-test.md index a3b929ad47a59..fc85473800974 100644 --- a/docs/core/tools/dotnet-test.md +++ b/docs/core/tools/dotnet-test.md @@ -26,7 +26,7 @@ Some examples of the `dotnet.config` file: ``` > [!IMPORTANT] -> 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).