Open nohwnd opened 3 months ago
I hadn't realised that #1503 had fixed it for dotnet test
... looking at the implementation here:
https://github.com/dotnet/sdk/blob/v9.0.100-preview.6.24328.19/src/Cli/dotnet/commands/dotnet-test/Program.cs#L72
it looks like the following works:
dotnet msbuild /t:VSTest /p:VsTestUseMSBuildOutput=true
Does not work with terminal logger and node reuse. It will not print the error from the second test project.
The following reproduces it for me:
Add the following to Project2\UnitTest1.cs:
Then:
I 'think' due to the parallel nature of MSBuild, it can vary which project you have to add the failing test to, but this gives me the following output:
Note, build failed, but no output of Project2 tests.
Originally posted by @FlukeFan in https://github.com/microsoft/vstest/issues/1503#issuecomment-410627578