Skip to content

Commit 12aade7

Browse files
authored
Enable long running tests (#2283)
1 parent 7559d3d commit 12aade7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.azure-pipelines/1esmain.yml

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ resources:
2424
ref: main
2525
endpoint: GitHub-AzureTools # The service connection to use when accessing this repository
2626

27+
parameters:
28+
- name: enableLongRunningTests
29+
displayName: Enable Long Running Tests
30+
type: boolean
31+
default: true
32+
2733
# Use those templates
2834
extends:
2935
template: azure-pipelines/1esmain.yml@azExtTemplates
36+
parameters:
37+
useAzureFederatedCredentials: ${{ parameters.enableLongRunningTests }}

test/global.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { TestOutputChannel, TestUserInput } from '@microsoft/vscode-azext-dev';
77
import * as vscode from 'vscode';
88
import { ext, registerOnActionStartHandler } from '../extension.bundle';
99

10+
export const longRunningTestsEnabled: boolean = !/^(false|0)?$/i.test(process.env.AzCode_UseAzureFederatedCredentials || '');
11+
1012
// Runs before all tests
1113
suiteSetup(async function (this: Mocha.Context): Promise<void> {
1214
this.timeout(2 * 60 * 1000);

0 commit comments

Comments
 (0)