Skip to content

Commit 9331f81

Browse files
CopilotYoussef1313
andcommitted
Update global.json template with --test-runner option (WIP)
Co-authored-by: Youssef1313 <[email protected]>
1 parent bbf2086 commit 9331f81

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

template_feed/Microsoft.DotNet.Common.ItemTemplates/content/GlobalJson/.template.config/template.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,26 @@
100100
"displayName": "Disable roll-forward"
101101
}
102102
]
103+
},
104+
"TestRunner": {
105+
"type": "parameter",
106+
"description": "The test runner to use.",
107+
"displayName": "Test runner",
108+
"replaces": "TEST_RUNNER_VALUE",
109+
"defaultValue": "",
110+
"datatype": "choice",
111+
"choices": [
112+
{
113+
"choice": "VSTest",
114+
"description": "Use the VSTest test runner",
115+
"displayName": "VSTest"
116+
},
117+
{
118+
"choice": "Microsoft.Testing.Platform",
119+
"description": "Use the Microsoft Testing Platform test runner",
120+
"displayName": "Microsoft Testing Platform"
121+
}
122+
]
103123
}
104124
},
105125
"postActions": [

template_feed/Microsoft.DotNet.Common.ItemTemplates/content/GlobalJson/global.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
"rollForward": "ROLL_FORWARD_VALUE",
55
//#endif
66
"version": "SDK_VERSION"
7+
}//#if (TestRunner!=""),
8+
"test": {
9+
"runner": "TEST_RUNNER_VALUE"
710
}
11+
//#endif
812
}

0 commit comments

Comments
 (0)