Update long running tests check (#2286)
This commit is contained in:
Родитель
12aade7d42
Коммит
cb95dbc610
|
@ -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 { TestOutputChannel, TestUserInput } from '@microsoft/vscode-azext-dev';
|
|||
import * as vscode from 'vscode';
|
||||
import { ext, 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> {
|
||||
|
|
Загрузка…
Ссылка в новой задаче