Skip to content

How did I get myself into a place where Microsoft Testing Platform mode is always enabled with dotnet test? #10605

@bradwilson

Description

@bradwilson

I'm trying to reproduce a problem with xUnit.net v3 for someone who is using dotnet test, but since installing .NET SDK 8.0.404 (dotnet test --version reporting 17.11.9.46202) it appears that there's no way to disable its recognition and usage of Microsoft.Testing.Platform-compatible test projects, so I'm unable to run tests the same way as users do (that is, through xunit.runner.visualstudio and the TPv2 APIs).

Another way to say this is: <TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport> is no longer required, and in fact, trying to set the value to false does not turn off MTP support.

Is there any way for me to get the old behavior back, short of creating a VM and installing an older SDK in it?


This is actually about more than just me reproducing this one bug, though. Users will see dotnet test --help and virtually everything on that screen will be wrong because those command line options do not apply when running a Microsoft.Testing.Platform project. How is the user to know this will be the case? How can they get an accurate set of command line options for dotnet test now?


Edit: this turns out to be a local problem that I don't understand but I wouldn't mind help understanding anyways.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions