|
41 | 41 | "args": [ |
42 | 42 | "--extensionDevelopmentPath=${workspaceFolder}/integration/vscode/ada", |
43 | 43 | "--extensionTestsPath=${workspaceFolder}/integration/vscode/ada/out/test/suite/index", |
44 | | - "${workspaceFolder}/integration/vscode/ada/test/SampleProject" |
| 44 | + "${workspaceFolder}/integration/vscode/ada/test/TestWorkspace" |
45 | 45 | ], |
| 46 | + "env": { |
| 47 | + // This is custom env var that we use in |
| 48 | + // integration/vscode/ada/test/suite/index.ts to prevent timeouts in |
| 49 | + // tests when debugging |
| 50 | + "MOCHA_TIMEOUT": "0" |
| 51 | + }, |
| 52 | + // Below we make the executables of node modules visible to the tests. |
| 53 | + // In particular, vscode-tmgrammar-snap is used for syntax highlighting |
| 54 | + // tests. |
| 55 | + "windows": { |
| 56 | + "env": { |
| 57 | + "PATH": "${workspaceFolder}/integration/vscode/ada/node_modules/.bin;${env:PATH}" |
| 58 | + } |
| 59 | + }, |
| 60 | + "osx": { |
| 61 | + "env": { |
| 62 | + "PATH": "${workspaceFolder}/integration/vscode/ada/node_modules/.bin:${env:PATH}" |
| 63 | + } |
| 64 | + }, |
| 65 | + "linux": { |
| 66 | + "env": { |
| 67 | + "PATH": "${workspaceFolder}/integration/vscode/ada/node_modules/.bin:${env:PATH}" |
| 68 | + } |
| 69 | + }, |
| 70 | + "preLaunchTask": "npm: pretest" |
| 71 | + }, |
| 72 | + { |
| 73 | + "name": "Extension Tests (Update Test Refs)", |
| 74 | + "type": "extensionHost", |
| 75 | + "request": "launch", |
| 76 | + "runtimeExecutable": "${execPath}", |
| 77 | + "outFiles": [ |
| 78 | + "${workspaceFolder}/integration/vscode/ada/out/**/*.js", |
| 79 | + "!**/node_modules/**" |
| 80 | + ], |
| 81 | + "args": [ |
| 82 | + "--extensionDevelopmentPath=${workspaceFolder}/integration/vscode/ada", |
| 83 | + "--extensionTestsPath=${workspaceFolder}/integration/vscode/ada/out/test/suite/index", |
| 84 | + "${workspaceFolder}/integration/vscode/ada/test/TestWorkspace" |
| 85 | + ], |
| 86 | + "env": { |
| 87 | + // This is custom env var that we use in |
| 88 | + // integration/vscode/ada/test/suite/index.ts to prevent timeouts in |
| 89 | + // tests when debugging |
| 90 | + "MOCHA_TIMEOUT": "0", |
| 91 | + // Setting this environment variable causes the tests to overwrite |
| 92 | + // previous test references when they are stored in files. See |
| 93 | + // assertEqualToFileContent in |
| 94 | + // integration/vscode/ada/test/suite/highlighting.test.ts |
| 95 | + "MOCHA_ALS_UPDATE": "1" |
| 96 | + }, |
| 97 | + // Below we make the executables of node modules visible to the tests. |
| 98 | + // In particular, vscode-tmgrammar-snap is used for syntax highlighting |
| 99 | + // tests. |
| 100 | + "windows": { |
| 101 | + "env": { |
| 102 | + "PATH": "${workspaceFolder}/integration/vscode/ada/node_modules/.bin;${env:PATH}" |
| 103 | + } |
| 104 | + }, |
| 105 | + "osx": { |
| 106 | + "env": { |
| 107 | + "PATH": "${workspaceFolder}/integration/vscode/ada/node_modules/.bin:${env:PATH}" |
| 108 | + } |
| 109 | + }, |
| 110 | + "linux": { |
| 111 | + "env": { |
| 112 | + "PATH": "${workspaceFolder}/integration/vscode/ada/node_modules/.bin:${env:PATH}" |
| 113 | + } |
| 114 | + }, |
46 | 115 | "preLaunchTask": "npm: pretest" |
47 | 116 | }, |
48 | 117 | { |
|
0 commit comments