Azure / Azure/azure-functions-host

Remove/address usage of `TestScopedEnvironmentVariable`

Open
#11,126 0 comments 1 reaction 0 assignees View on GitHub
Needs: Triage (Functions)
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

We should remove all usages of https://github.com/Azure/azure-functions-host/blob/dev/test/WebJobs.Script.Tests.Shared/TestScopedEnvironmentVariable.cs

Usage of this class is problematic as it still sets these variables for all other tests running concurrently.

If usage of this class **MUST** remain, then all tests using it need to be added to a collection to avoid running concurrently.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting test/WebJobs.Script.Tests.Shared/TestScopedEnvironmentVariable.cs and searching the test suite for every usage. Determine whether each usage can be removed or whether the affected tests must share a collection to prevent concurrent execution. Done means the class has no usages, or all remaining users are grouped to avoid running concurrently.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.