Skip to content

Commit

Permalink
Enable long running tests (#2283)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 authored Jun 20, 2024
1 parent 7559d3d commit 12aade7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .azure-pipelines/1esmain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions test/global.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 12aade7

Please sign in to comment.