Skip to content

Commit

Permalink
skip some testcases when CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kitta65 committed Feb 9, 2024
1 parent 5aec6a5 commit c7dbbd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/test/suite/diagnostics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe("Diagnostics", function () {
await util.deleteTextDocument(filename);
});
it("dryRun (success)", async function () {
if (process.env.CI === "true") return; // skip this test case because it needs authentication
await util.insert(filename, new vscode.Position(0, 0), "SELECT 1;");
await vscode.commands.executeCommand("bqExtensionVSCode.dryRun");
const diagnostics = vscode.languages.getDiagnostics(
Expand All @@ -25,6 +26,7 @@ describe("Diagnostics", function () {
assert.strictEqual(diagnostics.length, 0);
});
it("dryRun (fail)", async function () {
if (process.env.CI === "true") return; // skip this test case because it needs authentication
await util.insert(filename, new vscode.Position(0, 0), "SELECT 1;;");
await vscode.commands.executeCommand("bqExtensionVSCode.dryRun");
const diagnostics = vscode.languages.getDiagnostics(
Expand Down

0 comments on commit c7dbbd6

Please sign in to comment.