|
27 | 27 | "description": "VSTest filter (e.g., 'TestCategory!=Slow' or 'FullyQualifiedName~FwUtils')", |
28 | 28 | "default": "" |
29 | 29 | }, |
| 30 | + { |
| 31 | + "id": "testConfiguration", |
| 32 | + "type": "pickString", |
| 33 | + "description": "Test configuration (matches test.ps1 -Configuration)", |
| 34 | + "options": ["Debug", "Release"], |
| 35 | + "default": "Debug" |
| 36 | + }, |
| 37 | + { |
| 38 | + "id": "testVerbosity", |
| 39 | + "type": "pickString", |
| 40 | + "description": "Test verbosity (matches test.ps1 -Verbosity)", |
| 41 | + "options": ["quiet", "minimal", "normal", "detailed"], |
| 42 | + "default": "normal" |
| 43 | + }, |
30 | 44 | { |
31 | 45 | "id": "testProject", |
32 | 46 | "type": "promptString", |
|
61 | 75 | } |
62 | 76 | }, |
63 | 77 | // ==================== Build Tasks ==================== |
| 78 | + { |
| 79 | + "label": "dotnet: build", |
| 80 | + "type": "shell", |
| 81 | + "command": "./build.ps1", |
| 82 | + "detail": "Override: build FieldWorks via build.ps1 (required build order & custom tasks)", |
| 83 | + "options": { |
| 84 | + "shell": { |
| 85 | + "executable": "powershell.exe", |
| 86 | + "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"] |
| 87 | + } |
| 88 | + }, |
| 89 | + "problemMatcher": "$msCompile" |
| 90 | + }, |
64 | 91 | { |
65 | 92 | "label": "Build", |
66 | 93 | "type": "shell", |
|
94 | 121 | }, |
95 | 122 |
|
96 | 123 | // ==================== Test Tasks ==================== |
| 124 | + { |
| 125 | + "label": "dotnet: test", |
| 126 | + "type": "shell", |
| 127 | + "command": "./test.ps1", |
| 128 | + "detail": "Override: run FieldWorks tests via test.ps1 (handles build/test conventions)", |
| 129 | + "options": { |
| 130 | + "shell": { |
| 131 | + "executable": "powershell.exe", |
| 132 | + "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"] |
| 133 | + } |
| 134 | + }, |
| 135 | + "problemMatcher": "$msCompile" |
| 136 | + }, |
97 | 137 | { |
98 | 138 | "label": "Test", |
99 | 139 | "type": "shell", |
|
111 | 151 | }, |
112 | 152 | "problemMatcher": "$msCompile" |
113 | 153 | }, |
| 154 | + { |
| 155 | + "label": "Test (list tests)", |
| 156 | + "type": "shell", |
| 157 | + "command": "./test.ps1 -ListTests -NoBuild -Configuration ${input:testConfiguration} -Verbosity ${input:testVerbosity}", |
| 158 | + "group": "test", |
| 159 | + "detail": "List tests via test.ps1 (requires existing built test assemblies)", |
| 160 | + "options": { |
| 161 | + "shell": { |
| 162 | + "executable": "powershell.exe", |
| 163 | + "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"] |
| 164 | + } |
| 165 | + }, |
| 166 | + "problemMatcher": "$msCompile" |
| 167 | + }, |
114 | 168 | { |
115 | 169 | "label": "Test (with filter)", |
116 | 170 | "type": "shell", |
117 | | - "command": "./test.ps1 -TestFilter '${input:testFilter}'", |
| 171 | + "command": "./test.ps1 -TestFilter '${input:testFilter}' -Configuration ${input:testConfiguration} -Verbosity ${input:testVerbosity}", |
118 | 172 | "group": "test", |
119 | 173 | "detail": "Run tests with a filter expression", |
120 | 174 | "options": { |
|
128 | 182 | { |
129 | 183 | "label": "Test (specific project)", |
130 | 184 | "type": "shell", |
131 | | - "command": "./test.ps1 -TestProject '${input:testProject}'", |
| 185 | + "command": "./test.ps1 -TestProject '${input:testProject}' -Configuration ${input:testConfiguration} -Verbosity ${input:testVerbosity}", |
132 | 186 | "group": "test", |
133 | 187 | "detail": "Run tests from a specific project", |
134 | 188 | "options": { |
|
142 | 196 | { |
143 | 197 | "label": "Test (no build)", |
144 | 198 | "type": "shell", |
145 | | - "command": "./test.ps1 -NoBuild", |
| 199 | + "command": "./test.ps1 -NoBuild -Configuration ${input:testConfiguration} -Verbosity ${input:testVerbosity}", |
146 | 200 | "group": "test", |
147 | 201 | "detail": "Run tests without rebuilding (uses existing binaries)", |
148 | 202 | "options": { |
|
153 | 207 | }, |
154 | 208 | "problemMatcher": "$msCompile" |
155 | 209 | }, |
| 210 | + { |
| 211 | + "label": "Test (native)", |
| 212 | + "type": "shell", |
| 213 | + "command": "./test.ps1 -Native -Configuration ${input:testConfiguration}", |
| 214 | + "group": "test", |
| 215 | + "detail": "Run native tests via test.ps1 (dispatches to scripts/Agent/Invoke-CppTest.ps1)", |
| 216 | + "options": { |
| 217 | + "shell": { |
| 218 | + "executable": "powershell.exe", |
| 219 | + "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"] |
| 220 | + } |
| 221 | + }, |
| 222 | + "problemMatcher": "$msCompile" |
| 223 | + }, |
| 224 | + { |
| 225 | + "label": "Test (native, no build)", |
| 226 | + "type": "shell", |
| 227 | + "command": "./test.ps1 -Native -NoBuild -Configuration ${input:testConfiguration}", |
| 228 | + "group": "test", |
| 229 | + "detail": "Run native tests via test.ps1 without rebuilding", |
| 230 | + "options": { |
| 231 | + "shell": { |
| 232 | + "executable": "powershell.exe", |
| 233 | + "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"] |
| 234 | + } |
| 235 | + }, |
| 236 | + "problemMatcher": "$msCompile" |
| 237 | + }, |
156 | 238 |
|
157 | 239 | // ==================== CI Parity Checks ==================== |
158 | 240 | { |
|
0 commit comments