|
44 | 44 | "preLaunchTask": "buildDev" |
45 | 45 | }, |
46 | 46 | { |
47 | | - "type": "node", |
48 | | - "request": "launch", |
49 | | - "name": "Omnisharp: Launch Unit tests", |
50 | | - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", |
51 | | - "args": [ |
52 | | - "-u", |
53 | | - "tdd", |
54 | | - "--timeout", |
55 | | - "999999", |
56 | | - "--colors", |
57 | | - "${workspaceFolder}/out/omnisharptest/omnisharpUnitTests/**/*.test.js" |
58 | | - ], |
59 | | - "sourceMaps": true, |
60 | | - "internalConsoleOptions": "openOnSessionStart", |
61 | | - "outFiles": [ |
62 | | - "${workspaceRoot}/out/omnisharptest/**/*.js" |
63 | | - ], |
64 | | - "preLaunchTask": "build" |
65 | | - }, |
66 | | - { |
67 | | - "name": "Omnisharp: Launch Feature Tests", |
| 47 | + "name": "Omnisharp: Launch Current File Integration Tests", |
68 | 48 | "type": "extensionHost", |
69 | 49 | "request": "launch", |
70 | 50 | "runtimeExecutable": "${execPath}", |
71 | 51 | "args": [ |
72 | 52 | // Create a temp profile that has no extensions / user settings. |
73 | 53 | // This allows us to only have the C# extension + the dotnet runtime installer extension dependency. |
74 | 54 | "--profile-temp", |
| 55 | + "${workspaceRoot}/omnisharptest/omnisharpIntegrationTests/testAssets/${input:omnisharpAssetName}/.vscode/omnisharp_${input:omnisharpAssetName}.code-workspace", |
75 | 56 | "--extensionDevelopmentPath=${workspaceRoot}", |
76 | | - "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpFeatureTests" |
| 57 | + "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests", |
77 | 58 | ], |
78 | 59 | "env": { |
79 | 60 | "CODE_EXTENSIONS_PATH": "${workspaceRoot}", |
80 | | - "OSVC_SUITE": "featureTests", |
81 | | - }, |
82 | | - "sourceMaps": true, |
83 | | - "outFiles": [ |
84 | | - "${workspaceRoot}/out/omnisharptest/**/*.js" |
85 | | - ], |
86 | | - "preLaunchTask": "build" |
87 | | - }, |
88 | | - { |
89 | | - "name": "Omnisharp: Launch singleCsproj Workspace Tests", |
90 | | - "type": "extensionHost", |
91 | | - "request": "launch", |
92 | | - "runtimeExecutable": "${execPath}", |
93 | | - "args": [ |
94 | | - // Create a temp profile that has no extensions / user settings. |
95 | | - // This allows us to only have the C# extension + the dotnet runtime installer extension dependency. |
96 | | - "--profile-temp", |
97 | | - "${workspaceRoot}/test/integrationTests/testAssets/singleCsproj/.vscode/omnisharp_singleCsproj.code-workspace", |
98 | | - "--extensionDevelopmentPath=${workspaceRoot}", |
99 | | - "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests" |
100 | | - ], |
101 | | - "env": { |
102 | | - "CODE_EXTENSIONS_PATH": "${workspaceRoot}", |
103 | | - "OSVC_SUITE": "singleCsproj", |
104 | | - }, |
105 | | - "sourceMaps": true, |
106 | | - "outFiles": [ |
107 | | - "${workspaceRoot}/dist/*.js", |
108 | | - "${workspaceRoot}/out/omnisharptest/**/*.js" |
109 | | - ], |
110 | | - "preLaunchTask": "buildDev" |
111 | | - }, |
112 | | - { |
113 | | - "name": "Omnisharp: Launch razorcsproj Workspace Tests", |
114 | | - "type": "extensionHost", |
115 | | - "request": "launch", |
116 | | - "runtimeExecutable": "${execPath}", |
117 | | - "args": [ |
118 | | - // Create a temp profile that has no extensions / user settings. |
119 | | - // This allows us to only have the C# extension + the dotnet runtime installer extension dependency. |
120 | | - "--profile-temp", |
121 | | - "${workspaceRoot}/test/integrationTests/testAssets/BasicRazorApp2_1", |
122 | | - "--extensionDevelopmentPath=${workspaceRoot}", |
123 | | - "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests" |
124 | | - ], |
125 | | - "env": { |
126 | | - "CODE_EXTENSIONS_PATH": "${workspaceRoot}", |
127 | | - "OSVC_SUITE": "BasicRazorApp2_1", |
128 | | - }, |
129 | | - }, |
130 | | - { |
131 | | - "name": "Omnisharp: Launch slnWithCsproj Workspace Tests", |
132 | | - "type": "extensionHost", |
133 | | - "request": "launch", |
134 | | - "runtimeExecutable": "${execPath}", |
135 | | - "args": [ |
136 | | - // Create a temp profile that has no extensions / user settings. |
137 | | - // This allows us to only have the C# extension + the dotnet runtime installer extension dependency. |
138 | | - "--profile-temp", |
139 | | - "${workspaceRoot}/test/integrationTests/testAssets/slnWithCsproj/.vscode/omnisharp_slnWithCsproj.code-workspace", |
140 | | - "--extensionDevelopmentPath=${workspaceRoot}", |
141 | | - "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests" |
142 | | - ], |
143 | | - "env": { |
144 | | - "CODE_EXTENSIONS_PATH": "${workspaceRoot}", |
145 | | - "OSVC_SUITE": "slnWithCsproj", |
146 | | - }, |
147 | | - "sourceMaps": true, |
148 | | - "outFiles": [ |
149 | | - "${workspaceRoot}/dist/*.js", |
150 | | - "${workspaceRoot}/out/omnisharptest/**/*.js" |
151 | | - ], |
152 | | - "preLaunchTask": "buildDev" |
153 | | - }, |
154 | | - { |
155 | | - "name": "Omnisharp: Launch singleCsproj Workspace Tests [LSP]", |
156 | | - "type": "extensionHost", |
157 | | - "request": "launch", |
158 | | - "runtimeExecutable": "${execPath}", |
159 | | - "args": [ |
160 | | - // Create a temp profile that has no extensions / user settings. |
161 | | - // This allows us to only have the C# extension + the dotnet runtime installer extension dependency. |
162 | | - "--profile-temp", |
163 | | - "${workspaceRoot}/test/integrationTests/testAssets/singleCsproj/.vscode/omnisharp_lsp_singleCsproj.code-workspace", |
164 | | - "--extensionDevelopmentPath=${workspaceRoot}", |
165 | | - "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests" |
166 | | - ], |
167 | | - "env": { |
168 | | - "CODE_EXTENSIONS_PATH": "${workspaceRoot}", |
169 | | - "OSVC_SUITE": "singleCsproj", |
| 61 | + "OSVC_SUITE": "${input:omnisharpAssetName}", |
| 62 | + "TEST_FILE_FILTER": "${file}" |
170 | 63 | }, |
171 | 64 | "sourceMaps": true, |
172 | 65 | "outFiles": [ |
173 | 66 | "${workspaceRoot}/dist/*.js", |
174 | | - "${workspaceRoot}/out/omnisharptest/**/*.js" |
175 | | - ], |
176 | | - "preLaunchTask": "buildDev" |
177 | | - }, |
178 | | - { |
179 | | - "name": "Omnisharp: Launch razorcsproj Workspace Tests [LSP]", |
180 | | - "type": "extensionHost", |
181 | | - "request": "launch", |
182 | | - "runtimeExecutable": "${execPath}", |
183 | | - "args": [ |
184 | | - // Create a temp profile that has no extensions / user settings. |
185 | | - // This allows us to only have the C# extension + the dotnet runtime installer extension dependency. |
186 | | - "--profile-temp", |
187 | | - "${workspaceRoot}/test/integrationTests/testAssets/BasicRazorApp2_1", |
188 | | - "--extensionDevelopmentPath=${workspaceRoot}", |
189 | | - "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests" |
190 | | - ], |
191 | | - "env": { |
192 | | - "CODE_EXTENSIONS_PATH": "${workspaceRoot}", |
193 | | - "OSVC_SUITE": "BasicRazorApp2_1", |
194 | | - }, |
195 | | - }, |
196 | | - { |
197 | | - "name": "Omnisharp: Launch slnWithCsproj Workspace Tests [LSP]", |
198 | | - "type": "extensionHost", |
199 | | - "request": "launch", |
200 | | - "runtimeExecutable": "${execPath}", |
201 | | - "args": [ |
202 | | - // Create a temp profile that has no extensions / user settings. |
203 | | - // This allows us to only have the C# extension + the dotnet runtime installer extension dependency. |
204 | | - "--profile-temp", |
205 | | - "${workspaceRoot}/test/integrationTests/testAssets/slnWithCsproj/.vscode/omnisharp_lsp_slnWithCsproj.code-workspace", |
206 | | - "--extensionDevelopmentPath=${workspaceRoot}", |
207 | | - "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests" |
| 67 | + "${workspaceRoot}/out/test/**/*.js" |
208 | 68 | ], |
209 | | - "env": { |
210 | | - "CODE_EXTENSIONS_PATH": "${workspaceRoot}", |
211 | | - "OSVC_SUITE": "slnWithCsproj", |
212 | | - }, |
213 | | - "sourceMaps": true, |
214 | | - "outFiles": [ |
215 | | - "${workspaceRoot}/dist/*.js", |
216 | | - "${workspaceRoot}/out/omnisharptest/**/*.js" |
| 69 | + "resolveSourceMapLocations": [ |
| 70 | + "${workspaceFolder}/**", |
| 71 | + "!**/node_modules/**" |
217 | 72 | ], |
218 | 73 | "preLaunchTask": "buildDev" |
219 | 74 | }, |
220 | 75 | { |
221 | | - "name": "Omnisharp: Launch slnFilterWithCsproj Workspace Tests", |
| 76 | + "name": "Omnisharp: Launch Current File Integration Tests [LSP]", |
222 | 77 | "type": "extensionHost", |
223 | 78 | "request": "launch", |
224 | 79 | "runtimeExecutable": "${execPath}", |
225 | 80 | "args": [ |
226 | 81 | // Create a temp profile that has no extensions / user settings. |
227 | 82 | // This allows us to only have the C# extension + the dotnet runtime installer extension dependency. |
228 | 83 | "--profile-temp", |
229 | | - "${workspaceRoot}/test/integrationTests/testAssets/slnFilterWithCsproj", |
| 84 | + "${workspaceRoot}/omnisharptest/omnisharpIntegrationTests/testAssets/${input:omnisharpAssetName}/.vscode/omnisharp_lsp_${input:omnisharpAssetName}.code-workspace", |
230 | 85 | "--extensionDevelopmentPath=${workspaceRoot}", |
231 | 86 | "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests" |
232 | 87 | ], |
233 | 88 | "env": { |
234 | 89 | "CODE_EXTENSIONS_PATH": "${workspaceRoot}", |
235 | | - "OSVC_SUITE": "slnFilterWithCsproj", |
| 90 | + "OSVC_SUITE": "${input:omnisharpAssetName}", |
| 91 | + "TEST_FILE_FILTER": "${file}", |
236 | 92 | }, |
237 | 93 | "sourceMaps": true, |
238 | 94 | "outFiles": [ |
239 | 95 | "${workspaceRoot}/dist/*.js", |
240 | | - "${workspaceRoot}/out/omnisharptest/**/*.js" |
241 | | - ], |
242 | | - "preLaunchTask": "buildDev" |
243 | | - }, |
244 | | - { |
245 | | - "name": "Omnisharp: Launch slnWithGenerator Workspace Tests", |
246 | | - "type": "extensionHost", |
247 | | - "request": "launch", |
248 | | - "runtimeExecutable": "${execPath}", |
249 | | - "args": [ |
250 | | - // Create a temp profile that has no extensions / user settings. |
251 | | - // This allows us to only have the C# extension + the dotnet runtime installer extension dependency. |
252 | | - "--profile-temp", |
253 | | - "${workspaceRoot}/test/integrationTests/testAssets/slnWithGenerator", |
254 | | - "--extensionDevelopmentPath=${workspaceRoot}", |
255 | | - "--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests" |
| 96 | + "${workspaceRoot}/out/test/**/*.js" |
256 | 97 | ], |
257 | | - "env": { |
258 | | - "CODE_EXTENSIONS_PATH": "${workspaceRoot}", |
259 | | - "OSVC_SUITE": "slnWithGenerator", |
260 | | - }, |
261 | | - "sourceMaps": true, |
262 | | - "outFiles": [ |
263 | | - "${workspaceRoot}/dist/*.js", |
264 | | - "${workspaceRoot}/out/omnisharptest/**/*.js" |
| 98 | + "resolveSourceMapLocations": [ |
| 99 | + "${workspaceFolder}/**", |
| 100 | + "!**/node_modules/**" |
265 | 101 | ], |
266 | 102 | "preLaunchTask": "buildDev" |
267 | 103 | }, |
|
312 | 148 | "NEW_DEPS_ID": "RazorTelemetry" |
313 | 149 | }, |
314 | 150 | "cwd": "${workspaceFolder}" |
315 | | - }, |
316 | | - { |
317 | | - "type": "node", |
318 | | - "request": "launch", |
319 | | - "name": "Generate debugger options schema", |
320 | | - "preLaunchTask": "build", |
321 | | - "program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js", |
322 | | - "args": [ |
323 | | - "generateOptionsSchema" |
324 | | - ], |
325 | | - "cwd": "${workspaceFolder}" |
326 | | - }, |
327 | | - { |
328 | | - "type": "node", |
329 | | - "request": "launch", |
330 | | - "name": "Razor integration tests", |
331 | | - "preLaunchTask": "build", |
332 | | - "program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js", |
333 | | - "args": [ |
334 | | - "test:razorintegration" |
335 | | - ], |
336 | | - "cwd": "${workspaceFolder}" |
337 | | - } |
| 151 | + }, |
| 152 | + { |
| 153 | + "type": "node", |
| 154 | + "request": "launch", |
| 155 | + "name": "Generate debugger options schema", |
| 156 | + "preLaunchTask": "build", |
| 157 | + "program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js", |
| 158 | + "args": [ |
| 159 | + "generateOptionsSchema" |
| 160 | + ], |
| 161 | + "cwd": "${workspaceFolder}" |
| 162 | + }, |
| 163 | + { |
| 164 | + "type": "node", |
| 165 | + "request": "launch", |
| 166 | + "name": "Razor integration tests", |
| 167 | + "preLaunchTask": "build", |
| 168 | + "program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js", |
| 169 | + "args": [ |
| 170 | + "test:razorintegration" |
| 171 | + ], |
| 172 | + "cwd": "${workspaceFolder}" |
| 173 | + } |
| 174 | + ], |
| 175 | + "inputs": [ |
| 176 | + { |
| 177 | + "id": "omnisharpAssetName", |
| 178 | + "description": "The name of the asset folder to use for the OmniSharp integration test.", |
| 179 | + "type": "pickString", |
| 180 | + "options": [ |
| 181 | + "singleCsproj", |
| 182 | + "BasicRazorApp2_1", |
| 183 | + "slnWithCsproj", |
| 184 | + "slnFilterWithCsproj", |
| 185 | + "slnWithGenerator" |
| 186 | + ] |
| 187 | + // type specific configuration attributes |
| 188 | + } |
338 | 189 | ] |
339 | 190 | } |
0 commit comments