Skip to content

[Feature]: Migrate to MTP #170

@ParadiseFallen

Description

@ParadiseFallen

Feature Description

MTP is Microsoft testing platform. It's replaces old dotnet test.
MTP already wiedly supported (VSC, VS, Rider).

Docs:

Problem Statement

No response

Proposed Solution

Migration steps:

  • Modify .Tests repo.
    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 normal

Alternatives Considered

No response

Additional Context

No response

Contribution

  • I'd be willing to contribute this feature

Metadata

Metadata

Assignees

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