Migrate test project from VSTest to Microsoft Testing Platform - #101
Open
hahn-kev-bot wants to merge 1 commit into
Open
Migrate test project from VSTest to Microsoft Testing Platform#101hahn-kev-bot wants to merge 1 commit into
hahn-kev-bot wants to merge 1 commit into
Conversation
Switch SIL.Harmony.Tests to run on Microsoft.Testing.Platform (MTP) instead of VSTest, following the .NET VSTest-to-MTP migration guidance. - Enable the MTP runner for the xUnit.net v3 test project (UseMicrosoftTestingPlatformRunner + OutputType=Exe). - Use the xunit.v3.mtp-v2 package so the GitHubActionsTestLogger MTP extension (which requires MTP v2) can report results in CI. - Add global.json with test.runner=Microsoft.Testing.Platform so `dotnet test` uses MTP on the .NET 10 SDK. - Remove VSTest-only packages: Microsoft.NET.Test.Sdk, xunit.runner.visualstudio, coverlet.collector, and the explicit Microsoft.Testing.Platform reference (now transitive). - Update CI workflows to replace the VSTest `--logger GitHubActions` with the MTP `--report-github` flag. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKdgdJdeDQrwFE5pruMH3n
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe test projects now use Microsoft Testing Platform with the xUnit v3 MTP runner. Central test dependencies were updated, and both CI workflows now use ChangesTest platform migration
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1⚔️ Resolve merge conflicts 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switch to the fancy new MTP test runner, instead of vs test.
AI Summary
Switch SIL.Harmony.Tests to run on Microsoft.Testing.Platform (MTP) instead of VSTest, following the .NET VSTest-to-MTP migration guidance.
dotnet testuses MTP on the .NET 10 SDK.--logger GitHubActionswith the MTP--report-githubflag.Claude-Session: https://claude.ai/code/session_01PKdgdJdeDQrwFE5pruMH3n
Summary by CodeRabbit