|
3 | 3 | // Hover to view descriptions of existing attributes.
|
4 | 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5 | 5 | "version": "0.2.0",
|
| 6 | + "inputs": [ |
| 7 | + { |
| 8 | + "id": "test", |
| 9 | + "type": "pickString", |
| 10 | + "description": "Pick the type of test for this session", |
| 11 | + "default": "unitTest/", |
| 12 | + "options": [ |
| 13 | + { |
| 14 | + "label": "unitTest", |
| 15 | + "value": "unitTest" |
| 16 | + }, |
| 17 | + { |
| 18 | + "label": "integration", |
| 19 | + "value": "integration" |
| 20 | + } |
| 21 | + ] |
| 22 | + } |
| 23 | + ], |
6 | 24 | "configurations": [
|
7 | 25 | {
|
8 | 26 | "name": "Launch Extension",
|
|
21 | 39 | "${workspaceFolder}/test/fortran",
|
22 | 40 | "--disable-extension=fortran-lang.linter-gfortran",
|
23 | 41 | "--extensionDevelopmentPath=${workspaceFolder}",
|
24 |
| - "--extensionTestsPath=${workspaceFolder}/out/test" |
| 42 | + "--extensionTestsPath=${workspaceFolder}/out/test/${input:test}" |
25 | 43 | ],
|
26 | 44 | "outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
27 | 45 | "preLaunchTask": "npm: pretest"
|
| 46 | + }, |
| 47 | + { |
| 48 | + "name": "Debug UI Tests", |
| 49 | + "type": "node", |
| 50 | + "request": "launch", |
| 51 | + "program": "${workspaceFolder}/node_modules/.bin/extest", |
| 52 | + "args": [ |
| 53 | + "setup-and-run", |
| 54 | + "${workspaceFolder}/out/test/ui/*.js", |
| 55 | + "--mocha_config", |
| 56 | + "${workspaceFolder}/test/ui/.mocharc.js" |
| 57 | + ], |
| 58 | + "console": "integratedTerminal", |
| 59 | + "internalConsoleOptions": "neverOpen", |
| 60 | + "preLaunchTask": "npm: pretest" |
28 | 61 | }
|
29 | 62 | ]
|
30 | 63 | }
|
0 commit comments