Skip to content

Commit a7a2b81

Browse files
committed
Try to get dependent extensions in place for CI tests
1 parent 4ac159f commit a7a2b81

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

src/test/runTest.ts

+17-11
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,25 @@ async function main() {
1919
const vscodeExecutablePath = await downloadAndUnzipVSCode("stable");
2020
const [cli, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);
2121

22-
const installExtension = (extId) =>
23-
cp.spawnSync(cli, [...args, "--install-extension", extId], {
24-
encoding: "utf-8",
25-
stdio: "inherit",
26-
});
27-
2822
// Install dependent extensions
29-
installExtension("intersystems-community.servermanager");
30-
installExtension("intersystems-community.vscode-objectscript");
23+
// Use cp.spawn / cp.exec for custom setup
24+
cp.spawnSync(
25+
cli,
26+
[...args, '--install-extension', 'intersystems-community.servermanager', '--install-extension', 'intersystems-community.vscode-objectscript'],
27+
{
28+
encoding: 'utf-8',
29+
stdio: 'inherit'
30+
}
31+
);
3132

32-
// Download VS Code, unzip it and run the integration test
33-
await runTests({ extensionDevelopmentPath, extensionTestsPath });
34-
} catch (err) {
33+
// Run the extension test
34+
await runTests({
35+
// Use the specified `code` executable
36+
vscodeExecutablePath,
37+
extensionDevelopmentPath,
38+
extensionTestsPath
39+
});
40+
} catch (err) {
3541
console.error("Failed to run tests", err);
3642
process.exit(1);
3743
}

0 commit comments

Comments
 (0)