Skip to content

Commit

Permalink
disable other extensions when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonatwork committed May 20, 2020
1 parent 6223be1 commit 4ca5b6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"stopOnEntry": false,
"sourceMaps": true,
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
Expand Down
6 changes: 5 additions & 1 deletion test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ async function main() {
const extensionTestsPath = path.resolve(__dirname, './index');

// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath });
await runTests({
extensionDevelopmentPath,
extensionTestsPath,
launchArgs: ['--disable-extensions'],
});
} catch (err) {
console.error('Failed to run tests');
process.exit(1);
Expand Down

0 comments on commit 4ca5b6d

Please sign in to comment.