Prevent telemetry host termination on boolean MSTest setting payloads #8189
Azure Pipelines / microsoft.testfx (Build MacOS Debug)
failed
May 16, 2026 in 16m 35s
Build MacOS Debug failed
Annotations
Check failure on line 175 in src/TestFramework/TestFramework/Assertions/Assert.IsTrue.cs
azure-pipelines / microsoft.testfx (Build MacOS Debug)
src/TestFramework/TestFramework/Assertions/Assert.IsTrue.cs#L175
src/TestFramework/TestFramework/Assertions/Assert.IsTrue.cs(175,1): error : [ScopeWithSoftFailureFollowedByException_CollectsBoth] [net11.0] Assertion failed. Expected condition to be true.
Expression 'AssertOutputMatchesRegex' failed for member 'ScopeWithSoftFailureFollowedByException_CollectsBoth' at line 68 of file '/_/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/SoftAssertionTests.cs'. Output of the test host is:
Command: /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/uDyWo/SoftAssertionTests/bin/Release/net10.0/SoftAssertionTests --filter SoftFailureFollowedByException
====================
ExitCode: 2
====================
StandardOutput:
MSTest v4.3.0-ci (UTC 5/16/2026) [osx-x64 - .NET 10.0.8]
failed SoftFailureFollowedByException (1s 382ms)
Assertion failed. Expected value to not be null.
actual: null
Assert.IsNotNull(x)
at Microsoft.VisualStudio.TestTools.UnitTesting.AssertScope.Dispose() in /_/src/TestFramework/TestFramework/Assertions/AssertScope.cs:72
at UnitTest1.SoftFailureFollowedByException() in /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/uDyWo/SoftAssertionTests/UnitTest1.cs:54
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Test run summary: Failed! - /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/uDyWo/SoftAssertionTests/bin/Release/net10.0/SoftAssertionTests.dll (net10.0|x64)
total: 1
failed: 1
succeeded: 0
skipped: 0
duration: 2s 019ms
====================
StandardError:
actual: false
Assert.IsTrue(Regex.IsMatch(testHostResult.StandardOutput, pattern))
Check failure on line 175 in src/TestFramework/TestFramework/Assertions/Assert.IsTrue.cs
azure-pipelines / microsoft.testfx (Build MacOS Debug)
src/TestFramework/TestFramework/Assertions/Assert.IsTrue.cs#L175
src/TestFramework/TestFramework/Assertions/Assert.IsTrue.cs(175,1): error : [ScopeWithIsNotNullSoftFailure_CollectsFailure] [net11.0] Assertion failed. Expected condition to be true.
Expression 'AssertOutputMatchesRegex' failed for member 'ScopeWithIsNotNullSoftFailure_CollectsFailure' at line 79 of file '/_/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/SoftAssertionTests.cs'. Output of the test host is:
Command: /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/uDyWo/SoftAssertionTests/bin/Release/net10.0/SoftAssertionTests --filter ScopeWithIsNotNullSoftFailure
====================
ExitCode: 2
====================
StandardOutput:
MSTest v4.3.0-ci (UTC 5/16/2026) [osx-x64 - .NET 10.0.8]
failed ScopeWithIsNotNullSoftFailure (1s 363ms)
Assertion failed. Expected value to not be null.
actual: null
Assert.IsNotNull(value)
at Microsoft.VisualStudio.TestTools.UnitTesting.AssertScope.Dispose() in /_/src/TestFramework/TestFramework/Assertions/AssertScope.cs:72
at UnitTest1.ScopeWithIsNotNullSoftFailure() in /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/uDyWo/SoftAssertionTests/UnitTest1.cs:65
at UnitTest1.ScopeWithIsNotNullSoftFailure() in /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/uDyWo/SoftAssertionTests/UnitTest1.cs:60
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Test run summary: Failed! - /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/uDyWo/SoftAssertionTests/bin/Release/net10.0/SoftAssertionTests.dll (net10.0|x64)
total: 1
failed: 1
succeeded: 0
skipped: 0
duration: 1s 919ms
====================
StandardError:
actual: false
Assert.IsTrue(Regex.IsMatch(testHostResult.StandardOutput, pattern))
Check failure on line 7073 in Build log
azure-pipelines / microsoft.testfx (Build MacOS Debug)
Build log #L7073
Bash exited with code '2'.
Loading