Update long running tests check (#1322)
This commit is contained in:
Родитель
f9584cb08b
Коммит
51f28720e8
|
@ -74,7 +74,7 @@
|
|||
"MOCHA_timeout": "0", // Disable time-outs
|
||||
"DEBUGTELEMETRY": "v",
|
||||
"NODE_DEBUG": "",
|
||||
"ENABLE_LONG_RUNNING_TESTS": ""
|
||||
"AzCode_EnableLongRunningTestsLocal": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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> {
|
||||
|
|
Загрузка…
Ссылка в новой задаче