Skip to content

No failing test details with MTP and dotnet test support with xunit v3 #5188

Description

@martincostello

Describe the bug

I had a look through yours and xunit's documentation, but I couldn't see anything about this so I'm not sure if it's a bug or not.


Playing around with an existing xunit v3 project to have it use MTP, I don't seem to be able to get any useful terminal output when a test fails:

❯ dotnet test
Restore complete (0.6s)
  LondonTravel.Skill succeeded (2.4s) → C:\Coding\martincostello\alexa-london-travel\artifacts\bin\LondonTravel.Skill\debug\LondonTravel.Skill.dll
  LondonTravel.Skill.Tests succeeded (1.5s) → C:\Coding\martincostello\alexa-london-travel\artifacts\bin\LondonTravel.Skill.Tests\debug\LondonTravel.Skill.Tests.dll
  LondonTravel.Skill.Tests test failed with 1 error(s) (8.4s)
    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: 8.2s
Build failed with 1 error(s) in 13.7s

I would expect to be able to see details about the failing test in the terminal like if TestingPlatformDotnetTestSupport=false.

I tried explicitly adding the following, but it didn't seem to make any difference:

<TestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --output Detailed</TestingPlatformCommandLineArguments>

Steps To Reproduce

  1. Clone martincostello/alexa-london-travel@0829037
  2. Run dotnet test from the test\LondonTravel.Skill.Tests directory

Expected behavior

Information about which test has failed is shown in the terminal.

Actual behavior

A link to a log file containing the failure is shown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/documentationRepository or user-facing documentation.area/mtpMicrosoft.Testing.Platform core library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions