Skip to content

Commit

Permalink
Add parameter to manually enable long running tests (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 authored Jul 5, 2024
1 parent 738f937 commit 8803e0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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: 1 addition & 1 deletion test/global.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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.ENABLE_LONG_RUNNING_TESTS || '');
export const longRunningTestsEnabled: boolean = !/^(false|0)?$/i.test(process.env.AzCode_UseAzureFederatedCredentials || '');

// Runs before all tests
suiteSetup(async function (this: Mocha.Context): Promise<void> {
Expand Down

0 comments on commit 8803e0e

Please sign in to comment.