Skip to content

Commit 47d0415

Browse files
Update global.json doc
1 parent 7e9cef6 commit 47d0415

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/core/tools/global-json.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,19 @@ Type: `object`
112112

113113
Lets you control the project SDK version in one place rather than in each individual project. For more information, see [How project SDKs are resolved](/visualstudio/msbuild/how-to-use-project-sdk#how-project-sdks-are-resolved).
114114

115+
### test
116+
117+
- Type: `object`
118+
119+
Specifies information about tests.
120+
121+
### runner
122+
123+
- Type: `string`
124+
- Available since: .NET 10.0 SDK.
125+
126+
The test runner to discover/run tests with.
127+
115128
### Comments in global.json
116129

117130
Comments in *global.json* files are supported using JavaScript or C# style comments. For example:
@@ -195,6 +208,16 @@ The following example shows how to specify additional SDK search paths and a cus
195208
}
196209
```
197210

211+
The following example shows how to specify `Microsoft.Testing.Platform` as the test runner:
212+
213+
```json
214+
{
215+
"test": {
216+
"runner": "Microsoft.Testing.Platform"
217+
}
218+
}
219+
```
220+
198221
## global.json and the .NET CLI
199222

200223
To set an SDK version in the *global.json* file, it's helpful to know which SDK versions are installed on your machine. For information on how to do that, see [How to check that .NET is already installed](../install/how-to-detect-installed-versions.md#check-sdk-versions).

0 commit comments

Comments
 (0)