Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 25 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import path from 'path'; |
||
2 | import { runTests } from 'vscode-test'; |
||
3 | |||
4 | async function main() { |
||
5 | try { |
||
6 | // The folder containing the Extension Manifest package.json |
||
7 | // Passed to `--extensionDevelopmentPath` |
||
8 | const extensionDevelopmentPath = path.resolve(__dirname, '../../'); |
||
9 | |||
10 | // The path to test runner |
||
11 | // Passed to --extensionTestsPath |
||
12 | const extensionTestsPath = path.resolve(__dirname, './suite/index'); |
||
13 | |||
14 | // Download VS Code, unzip it and run the integration test |
||
15 | await runTests({ extensionDevelopmentPath, extensionTestsPath }); |
||
16 | } catch (error) { |
||
17 | console.error('runTest:', error); |
||
18 | console.error('Failed to run tests'); |
||
19 | // eslint-disable-next-line no-process-exit |
||
20 | process.exit(1); |
||
21 | } |
||
22 | } |
||
23 | |||
24 | main(); |
||
25 |