microsoft / MSBuildSdks

MSBuild project SDKs
MIT License
449 stars 80 forks source link

RunVSTest: Avoid running tests a second time when running under dotnet #549

Closed dfederm closed 5 months ago

dfederm commented 5 months ago

When using dotnet build /t:Build;Test, the tests will run twice as Microsoft.Testing.Platform.MSBuild, which is automatically included as a dependency of MSTest.TestAdapter, will run the tests in a more built-in way.

This change just gets this Microsoft.Build.RunVSTest SDK out of the way in that scenario in favor of the built-in mechanism.