MCPcopy
hub / github.com/microsoft/vscode-js-debug / main

Function main

src/test/runTest.js:9–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const path = require('path');
8
9async function main() {
10 try {
11 // The folder containing the Extension Manifest package.json
12 // Passed to `--extensionDevelopmentPath`
13 const extensionDevelopmentPath = path.resolve(__dirname, '../../dist');
14
15 // The path to the extension test script
16 // Passed to --extensionTestsPath
17 const extensionTestsPath = path.resolve(extensionDevelopmentPath, 'src/testRunner');
18
19 process.env.PWA_TEST_OPTIONS = JSON.stringify(minimist(process.argv.slice(2)));
20
21 // Download VS Code, unzip it and run the integration test
22 const basedir = path.resolve(__dirname, '../..');
23
24 await runTests({
25 extensionDevelopmentPath,
26 extensionTestsPath,
27 launchArgs: [
28 basedir,
29 '--disable-extension=ms-vscode.js-debug',
30 '--disable-user-env-probe',
31 '--disable-workspace-trust',
32 ],
33 });
34 } catch (err) {
35 console.error('Failed to run tests', err);
36 process.exit(1);
37 }
38}
39
40main();

Callers 1

runTest.jsFile · 0.70

Calls 2

resolveMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected