-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
Feature Description
MTP is Microsoft testing platform. It's replaces old dotnet test.
MTP already wiedly supported (VSC, VS, Rider).
Docs:
- https://learn.microsoft.com/en-us/dotnet/core/testing/microsoft-testing-platform-intro?tabs=dotnetcli
- https://xunit.net/docs/getting-started/v3/code-coverage-with-mtp
- https://xunit.net/docs/getting-started/v3/microsoft-testing-platform
Problem Statement
No response
Proposed Solution
Migration steps:
- Modify
.Testsrepo.
Remove
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="coverlet.collector" />Add
<PropertyGroup>
<OutputType>Exe</OutputType>
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.v3" Version="3.2.0" />
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.0.4" />
</ItemGroup>(18.0.4 bc MC broke campatability in 18.1.* using old package without MTP)
- Change CI
- name: Test
run: dotnet run src/RazorConsole.Tests.csproj --configuration Release --no-build --verbosity normalAlternatives Considered
No response
Additional Context
No response
Contribution
- I'd be willing to contribute this feature
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels