Enable long running tests (#2283)
This commit is contained in:
Родитель
7559d3d8a3
Коммит
12aade7d42
|
@ -24,6 +24,14 @@ resources:
|
|||
ref: main
|
||||
endpoint: GitHub-AzureTools # The service connection to use when accessing this repository
|
||||
|
||||
parameters:
|
||||
- name: enableLongRunningTests
|
||||
displayName: Enable Long Running Tests
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
# Use those templates
|
||||
extends:
|
||||
template: azure-pipelines/1esmain.yml@azExtTemplates
|
||||
parameters:
|
||||
useAzureFederatedCredentials: ${{ parameters.enableLongRunningTests }}
|
||||
|
|
|
@ -7,6 +7,8 @@ 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 || '');
|
||||
|
||||
// Runs before all tests
|
||||
suiteSetup(async function (this: Mocha.Context): Promise<void> {
|
||||
this.timeout(2 * 60 * 1000);
|
||||
|
|
Загрузка…
Ссылка в новой задаче