Skip to content

Commit

Permalink
Update long running tests check (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 authored Jul 9, 2024
1 parent f9584cb commit 51f2872
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"MOCHA_timeout": "0", // Disable time-outs
"DEBUGTELEMETRY": "v",
"NODE_DEBUG": "",
"ENABLE_LONG_RUNNING_TESTS": ""
"AzCode_EnableLongRunningTestsLocal": ""
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion test/global.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import { TestUserInput } from '@microsoft/vscode-azext-dev';
import * as vscode from 'vscode';
import { registerOnActionStartHandler } from "../extension.bundle";

export const longRunningTestsEnabled: boolean = !/^(false|0)?$/i.test(process.env.AzCode_UseAzureFederatedCredentials || '');
const longRunningLocalTestsEnabled: boolean = !/^(false|0)?$/i.test(process.env.AzCode_EnableLongRunningTestsLocal || '');
const longRunningRemoteTestsEnabled: boolean = !/^(false|0)?$/i.test(process.env.AzCode_UseAzureFederatedCredentials || '');

export const longRunningTestsEnabled: boolean = longRunningLocalTestsEnabled || longRunningRemoteTestsEnabled;

// Runs before all tests
suiteSetup(async function (this: Mocha.Context): Promise<void> {
Expand Down

0 comments on commit 51f2872

Please sign in to comment.