You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No failing test details with MTP and dotnet test support with xunit v3 #5188
Martin Costello (@martincostello) Thanks for reaching out. Can you please try <TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>or<TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput>. If that works out for you, I think we will want to document these properties in the page you linked. They are already documented in a different page though.
❯ dotnet test
Restore complete (2.6s)
LondonTravel.Skill succeeded (28.8s) → C:\Coding\martincostello\alexa-london-travel\artifacts\bin\LondonTravel.Skill\debug\LondonTravel.Skill.dll
LondonTravel.Skill.Tests succeeded (5.1s) → C:\Coding\martincostello\alexa-london-travel\artifacts\bin\LondonTravel.Skill.Tests\debug\LondonTravel.Skill.Tests.dll
LondonTravel.Skill.Tests test failed with 2 error(s) (9.5s)
C:\Coding\martincostello\alexa-london-travel\test\LondonTravel.Skill.Tests\HelpTests.cs(27): error test failed:
Can_Invoke_Function (1s 093ms): Shouldly.ShouldAssertException : response.Reprompt
should not be null but was
Stack Trace:
at MartinCostello.LondonTravel.Skill.HelpTests.Can_Invoke_Function() in C:\Coding\martincostello\alexa-lon
don-travel\test\LondonTravel.Skill.Tests\HelpTests.cs:line 27
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, Configur
eAwaitOptions options)
---End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, Configur
eAwaitOptions options)
C:\Coding\martincostello\alexa-london-travel\artifacts\bin\LondonTravel.Skill.Tests\debug\LondonTravel.Skill.Tests.dll : error run failed: Tests failed: 'C:\Coding\martincostello\alexa-london-travel\artifacts\bin\LondonTravel.Skill.Tests\debug\TestResults\LondonTravel.Skill.Tests_net9.0_x64.log' [net9.0|x64]
Test summary: total: 104, failed: 1, succeeded: 103, skipped: 0, duration: 9.2s
Build failed with 2 error(s) in51.7s
This is expected behavior in the legacy VSTest mode of dotnet test: Microsoft.Testing.Platform.MSBuild captures the test application's output by default and reports a single project-level error. Per-test failure details can be enabled with:
or from the command line with -p:TestingPlatformShowTestsFailure=true. Alternatively, <TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput> shows the complete platform output.
The exact behavior and both settings are now documented in Testing with dotnet test. The native MTP mode available with the .NET 10 SDK does not use this legacy output-capture path and is the recommended approach going forward.
Since the documentation gap has been addressed and no product change is needed, I'm closing this issue as completed. Thanks again for reporting it and confirming the workaround!
Activity
Youssef1313 commentedon Mar 7, 2025
Martin Costello (@martincostello) Thanks for reaching out. Can you please try
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>or<TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput>. If that works out for you, I think we will want to document these properties in the page you linked. They are already documented in a different page though.martincostello commentedon Mar 7, 2025
Yep, that fixed it thanks:
Fix missing test output
Youssef1313 commentedon Mar 7, 2025
Thanks for confirming Martin Costello (@martincostello). I'm keeping this issue open to improve the documentation for the page you linked.
Evangelink commentedon Mar 7, 2025
Martin Costello (@martincostello) come (back) to MSTest!!! ;)
Evangelink commentedon Aug 31, 2026
This is expected behavior in the legacy VSTest mode of
dotnet test:Microsoft.Testing.Platform.MSBuildcaptures the test application's output by default and reports a single project-level error. Per-test failure details can be enabled with:or from the command line with
-p:TestingPlatformShowTestsFailure=true. Alternatively,<TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput>shows the complete platform output.The exact behavior and both settings are now documented in Testing with
dotnet test. The native MTP mode available with the .NET 10 SDK does not use this legacy output-capture path and is the recommended approach going forward.Since the documentation gap has been addressed and no product change is needed, I'm closing this issue as completed. Thanks again for reporting it and confirming the workaround!