()
| 7 | const path = require('path'); |
| 8 | |
| 9 | async 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 | |
| 40 | main(); |
no test coverage detected