Skip to content

Commit 60715bb

Browse files
authored
Update dotnet test to correct dotnet.config documentation (#45589)
1 parent dc84e44 commit 60715bb

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,14 @@ To address the issues encountered when running `dotnet test` with MTP in VSTest
9090
9191
To enable this mode, you should add a `dotnet.config` file to the root of the repository or solution.
9292
93-
```toml
93+
```ini
9494
[dotnet.test:runner]
9595
name = "Microsoft.Testing.Platform"
9696
```
9797
98+
> [!NOTE]
99+
> The format will change from `dotnet.test:runner` to `dotnet.test.runner` in .NET 10 SDK Preview 4.
100+
98101
Since this mode is specifically designed for Microsoft.Testing.Platform, neither `TestingPlatformDotnetTestSupport` nor the additional `--` are required.
99102

100103
> [!IMPORTANT]

docs/core/tools/dotnet-test.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,23 @@ ms.date: 03/27/2024
1111

1212
## Description
1313

14-
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.
14+
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.
1515

1616
Some examples of the `dotnet.config` file:
1717

18-
```toml
18+
```ini
1919
[dotnet.test:runner]
2020
name = "Microsoft.Testing.Platform"
2121
```
2222

23-
```toml
23+
```ini
2424
[dotnet.test:runner]
2525
name = "VSTest"
2626
```
2727

28+
> [!NOTE]
29+
> The format will change from `dotnet.test:runner` to `dotnet.test.runner` in .NET 10 SDK Preview 4.
30+
2831
> [!TIP]
2932
> For conceptual documentation about `dotnet test`, see [Testing with dotnet test](../testing/unit-testing-with-dotnet-test.md).
3033

0 commit comments

Comments
 (0)