Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit b6d4483

Browse files
committed
Start already the test runner in a fixtures dir
1 parent b629400 commit b6d4483

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.vscode/launch.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"runtimeExecutable": "${execPath}",
2525
"args": [
2626
"--extensionDevelopmentPath=${workspaceFolder}",
27-
"--extensionTestsPath=${workspaceFolder}/out/test"
27+
"--extensionTestsPath=${workspaceFolder}/out/test/suite",
28+
"${workspaceFolder}/fixtures"
2829
],
2930
"outFiles": [
3031
"${workspaceFolder}/out/test/**/*.js"

test/runTest.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ import { runTests } from 'vscode-test';
99
await runTests({
1010
extensionDevelopmentPath,
1111
extensionTestsPath,
12-
launchArgs: ['--disable-extensions'],
12+
launchArgs: [
13+
'--disable-extensions',
14+
// Already start in the fixtures dir because we lose debugger connection
15+
// once we re-open a different folder due to window reloading
16+
path.join(extensionDevelopmentPath, 'fixtures'),
17+
],
1318
}).catch(() => {
1419
console.error(`Test run failed`);
1520
process.exit(1);

test/suite/extension.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ suite('Extension Tests', () => {
2626
{ subcommand: 'run', group: undefined },
2727
];
2828

29-
await vscode.commands.executeCommand('vscode.openFolder', projectUri);
3029
const whenWorkspacesActive = projects.map(path => {
3130
const fsPath = Uri.file(path).fsPath;
3231
return whenWorkspaceActive(fsPath);

0 commit comments

Comments
 (0)