ExceptionReporter does not work under windows server 2019
Problem
Under macOS Catalina 10.05 and Ubuntu 20 LTS, the tests are working as expected.
Look at this Pull Request
The worst part is, that the exception seems to cause the test host to not shut down.
That means the dotnet test process will run indefinitely until manually killed.
This is pretty bad if you want to execute the test in pipelines.
Question
Should I ditch the support for windows inside the test pipelines, or what do you suggest?
Additional Information
For more information please look into the full logs
Starting: RemoteControlledProcess.Unit.Tests
[xUnit.net 00:00:00.81] RemoteControlledProcess.Unit.Tests.ExceptionReporterExtensionTests.Write_CalledInCatchBlock_WrittenMessagesMatch(invocationIndex: 0, expectedMessageRegex: "Unhandled exception in .*RemoteControlledProcess.U"...) [FAIL]
[xUnit.net 00:00:00.81] Assert.Matches() Failure:
[xUnit.net 00:00:00.83] RemoteControlledProcess.Unit.Tests.ExceptionReporterExtensionTests.Log_CalledInCatchBlock_LogsCriticalMessageWithExpectedRegex [FAIL]
Test Run Failed.
[xUnit.net 00:00:00.81] Regex: Unhandled exception in .*RemoteControlledProcess.Unit.Tests/ExceptionReporterExtensionTests.cs:[0-9]+
[xUnit.net 00:00:00.81] Value: Unhandled exception in D:\a\RemoteControlledProcess\RemoteControlledProcess\RemoteControlledProcess.Unit.Tests\ExceptionReporterExtensionTests.cs:22
[xUnit.net 00:00:00.81] Stack Trace:
[xUnit.net 00:00:00.81] D:\a\RemoteControlledProcess\RemoteControlledProcess\RemoteControlledProcess.Unit.Tests\ExceptionReporterExtensionTests.cs(32,0): at RemoteControlledProcess.Unit.Tests.ExceptionReporterExtensionTests.Write_CalledInCatchBlock_WrittenMessagesMatch(Int32 invocationIndex, String expectedMessageRegex)
[xUnit.net 00:00:00.83] Assert.Matches() Failure:
[xUnit.net 00:00:00.83] Regex: Unhandled exception in .*RemoteControlledProcess.Unit.Tests/ExceptionReporterExtensionTests.cs:[0-9]+
[xUnit.net 00:00:00.83] Value: Unhandled exception in D:\a\RemoteControlledProcess\RemoteControlledProcess\RemoteControlledProcess.Unit.Tests\ExceptionReporterExtensionTests.cs:43
[xUnit.net 00:00:00.83] Stack Trace:
[xUnit.net 00:00:00.83] D:\a\RemoteControlledProcess\RemoteControlledProcess\RemoteControlledProcess.Unit.Tests\ExceptionReporterExtensionTests.cs(56,0): at RemoteControlledProcess.Unit.Tests.ExceptionReporterExtensionTests.Log_CalledInCatchBlock_LogsCriticalMessageWithExpectedRegex()
A bug inside unit when running code under windows server 2019
ExceptionReporter does not work under windows server 2019
Problem
Under macOS Catalina 10.05 and Ubuntu 20 LTS, the tests are working as expected.
Look at this Pull Request
The worst part is, that the exception seems to cause the test host to not shut down.
That means the
dotnet testprocess will run indefinitely until manually killed.This is pretty bad if you want to execute the test in pipelines.
Question
Should I ditch the support for windows inside the test pipelines, or what do you suggest?
Additional Information
For more information please look into the full logs
A bug inside unit when running code under windows server 2019