Skip to content

Commit d89fa19

Browse files
authored
disable tests (#2767)
Co-authored-by: Mine Starks <>
1 parent 55728e2 commit d89fa19

1 file changed

Lines changed: 22 additions & 19 deletions

File tree

source/vscode/test/runTests.mjs

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
// Q# extension logs are usually more relevant for debugging tests.
1919
// To control the Q# extension log level see: suites/extensionUtils.ts
2020

21-
import { runTests } from "@vscode/test-web";
21+
// import { runTests } from "@vscode/test-web";
2222
import { readFileSync } from "node:fs";
2323
import { SourceMap } from "node:module";
2424
import path, { dirname, join } from "node:path";
2525
import { fileURLToPath } from "node:url";
2626

2727
const attachArgName = "--waitForDebugger=";
28-
const verboseArgName = "--verbose";
28+
// const verboseArgName = "--verbose";
2929
const suiteArgName = "--suite=";
3030

31-
const verbose = process.argv.includes(verboseArgName);
31+
// const verbose = process.argv.includes(verboseArgName);
3232
const waitForDebugger = process.argv.find((arg) =>
3333
arg.startsWith(attachArgName),
3434
);
@@ -46,7 +46,7 @@ if (waitForDebugger && !selectedSuite) {
4646

4747
const thisDir = dirname(fileURLToPath(import.meta.url));
4848
// The folder containing the Extension Manifest package.json
49-
const extensionDevelopmentPath = join(thisDir, "..");
49+
// const extensionDevelopmentPath = join(thisDir, "..");
5050

5151
try {
5252
const suites = ["language-service", "debugger"];
@@ -63,28 +63,31 @@ try {
6363
}
6464

6565
async function runSuite(name) {
66-
const extensionTestsPath = join(thisDir, "out", name, "index");
67-
const workspacePath = join(thisDir, "suites", name, "test-workspace");
66+
// const extensionTestsPath = join(thisDir, "out", name, "index");
67+
// const workspacePath = join(thisDir, "suites", name, "test-workspace");
6868

6969
// Capture console output before running tests,
7070
// so that we can map stack traces to original source files.
7171
const { restoreConsole } = interceptConsoleWithStackMapping();
7272

7373
try {
7474
// Start a web server that serves VS Code in a browser, run the tests
75-
await runTests({
76-
headless: true, // pass false to see VS Code UI
77-
browserType: "chromium",
78-
extensionDevelopmentPath,
79-
extensionTestsPath,
80-
folderPath: workspacePath,
81-
quality: "stable",
82-
printServerLog: verbose,
83-
verbose,
84-
waitForDebugger: waitForDebugger
85-
? Number(waitForDebugger.slice(attachArgName.length))
86-
: undefined,
87-
});
75+
// TODO: reenable tests once network failures are addressed
76+
// (https://github.com/microsoft/qdk/pull/2764)
77+
void name;
78+
// await runTests({
79+
// headless: true, // pass false to see VS Code UI
80+
// browserType: "chromium",
81+
// extensionDevelopmentPath,
82+
// extensionTestsPath,
83+
// folderPath: workspacePath,
84+
// quality: "stable",
85+
// printServerLog: verbose,
86+
// verbose,
87+
// waitForDebugger: waitForDebugger
88+
// ? Number(waitForDebugger.slice(attachArgName.length))
89+
// : undefined,
90+
// });
8891
} finally {
8992
restoreConsole();
9093
}

0 commit comments

Comments
 (0)