Skip to content

Apply suggestion from @Evangelink

d6547ea
Select commit
Loading
Failed to load commit list.
Open

Fix: runsettings environment variables ignored during test discovery #7078

Apply suggestion from @Evangelink
d6547ea
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.testfx (Build MacOS Release) failed Dec 7, 2025 in 20m 54s

Build MacOS Release failed

Annotations

Check failure on line 71 in src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Release)

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs#L71

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs(71,1): error : [IsEnabledAsync_WhenCommandLineOptionProvided_ReturnsTrue] Test method Microsoft.Testing.Extensions.VSTestBridge.UnitTests.TestHostControllers.RunSettingsEnvironmentVariableProviderTests.IsEnabledAsync_WhenCommandLineOptionProvided_ReturnsTrue threw exception:
Moq.MockException: IDisposable.Dispose() invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.

Check failure on line 71 in src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Release)

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs#L71

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs(71,1): error : [IsEnabledAsync_WhenCommandLineOptionProvidedButNoEnvironmentVariables_ReturnsFalse] Test method Microsoft.Testing.Extensions.VSTestBridge.UnitTests.TestHostControllers.RunSettingsEnvironmentVariableProviderTests.IsEnabledAsync_WhenCommandLineOptionProvidedButNoEnvironmentVariables_ReturnsFalse threw exception:
Moq.MockException: IDisposable.Dispose() invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.

Check failure on line 71 in src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Release)

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs#L71

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs(71,1): error : [IsEnabledAsync_WhenEnvironmentVariableWithFilePathProvided_ReturnsTrue] Test method Microsoft.Testing.Extensions.VSTestBridge.UnitTests.TestHostControllers.RunSettingsEnvironmentVariableProviderTests.IsEnabledAsync_WhenEnvironmentVariableWithFilePathProvided_ReturnsTrue threw exception:
Moq.MockException: IDisposable.Dispose() invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.

Check failure on line 71 in src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Release)

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs#L71

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs(71,1): error : [IsEnabledAsync_WhenCommandLineOptionProvidedButNoEnvironmentVariables_ReturnsFalse] Test method Microsoft.Testing.Extensions.VSTestBridge.UnitTests.TestHostControllers.RunSettingsEnvironmentVariableProviderTests.IsEnabledAsync_WhenCommandLineOptionProvidedButNoEnvironmentVariables_ReturnsFalse threw exception:
Moq.MockException: IDisposable.Dispose() invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.

Check failure on line 71 in src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Release)

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs#L71

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/TestHostControllers/RunSettingsEnvironmentVariableProvider.cs(71,1): error : [IsEnabledAsync_WhenEnvironmentVariableWithFilePathProvided_ReturnsTrue] Test method Microsoft.Testing.Extensions.VSTestBridge.UnitTests.TestHostControllers.RunSettingsEnvironmentVariableProviderTests.IsEnabledAsync_WhenEnvironmentVariableWithFilePathProvided_ReturnsTrue threw exception:
Moq.MockException: IDisposable.Dispose() invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.