()
| 3 | import { runTests } from '@vscode/test-electron'; |
| 4 | |
| 5 | async function main() { |
| 6 | try { |
| 7 | // The folder containing the Extension Manifest package.json |
| 8 | // Passed to `--extensionDevelopmentPath` |
| 9 | const extensionDevelopmentPath = path.resolve(__dirname, '../../'); |
| 10 | |
| 11 | // The path to the extension test runner script |
| 12 | // Passed to --extensionTestsPath |
| 13 | const extensionTestsPath = path.resolve(__dirname, './index'); |
| 14 | |
| 15 | // Download VS Code, unzip it and run the integration test |
| 16 | await runTests({ |
| 17 | extensionDevelopmentPath, |
| 18 | extensionTestsPath, |
| 19 | // Disable other extensions while running tests for avoiding unexpected side-effect |
| 20 | launchArgs: ['--disable-extensions'], |
| 21 | }); |
| 22 | } catch (err) { |
| 23 | console.error(err); |
| 24 | console.error('Failed to run tests'); |
| 25 | process.exit(1); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | void main(); |
no test coverage detected