diff options
Diffstat (limited to 'editors/code/src/test/runTest.ts')
-rw-r--r-- | editors/code/src/test/runTest.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/editors/code/src/test/runTest.ts b/editors/code/src/test/runTest.ts new file mode 100644 index 000000000..d880d47df --- /dev/null +++ b/editors/code/src/test/runTest.ts | |||
@@ -0,0 +1,22 @@ | |||
1 | import * as path from 'path'; | ||
2 | |||
3 | import { runTests } from 'vscode-test'; | ||
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, './utils/index'); | ||
14 | |||
15 | // Download VS Code, unzip it and run the integration test | ||
16 | await runTests({ extensionDevelopmentPath, extensionTestsPath }); | ||
17 | } catch (err) { | ||
18 | process.exit(1); | ||
19 | } | ||
20 | } | ||
21 | |||
22 | main(); | ||