Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 25, 2025

Migrate from xUnit 2.x with VSTest to xUnit v3 with Microsoft Testing Platform v2. Update workflows for new CLI syntax.

Package changes (Directory.Packages.props)

  • Removed: Microsoft.NET.Test.Sdk, xunit, xunit.analyzers, xunit.runner.visualstudio, coverlet.collector
  • Added: xunit.v3.mtp-v2 3.2.0

Test project (Parlot.Tests.csproj)

  • Added MTP properties: OutputType=Exe, TestingPlatformDotnetTestSupport, UseMicrosoftTestingPlatformRunner
  • Suppressed xUnit1051 — tests intentionally use explicit CancellationTokens

Runtime configuration (global.json)

"test": {
  "runner": "Microsoft.Testing.Platform"
}

Workflows (build.yml, publish.yml)

# Old
run: dotnet test --configuration Release

# New (--project required with MTP)
run: dotnet test --project test/Parlot.Tests/Parlot.Tests.csproj --configuration Release
Original prompt

Migrate the tests to Microsoft Testing Platform (MTP v2). Update the github workflows with the new command line. Remove unnecessary dependencies after this change.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 25, 2025
Copilot AI changed the title [WIP] Migrate tests to Microsoft Testing Platform v2 and update workflows Migrate tests to Microsoft Testing Platform (MTP v2) Nov 25, 2025
Copilot AI requested a review from sebastienros November 25, 2025 01:55
Copilot finished work on behalf of sebastienros November 25, 2025 01:55
@sebastienros sebastienros marked this pull request as ready for review November 25, 2025 02:08
@sebastienros sebastienros merged commit 4cbc466 into main Nov 25, 2025
1 check passed
@sebastienros sebastienros deleted the copilot/migrate-tests-to-mtp-v2 branch November 25, 2025 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants