-
-
Notifications
You must be signed in to change notification settings - Fork 108
feat: add comprehensive kitchen sink migration tests and improve code fixers #4433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add comprehensive kitchen sink migration tests and improve code fixers #4433
Conversation
… fixers
- Add comprehensive kitchen sink tests for NUnit, MSTest, and XUnit migrations
covering setup/teardown hooks, various test attributes, assertion methods,
collection assertions, and skip/ignore functionality
- Fix NUnit migration code fixer to handle:
- Does.Contain() -> .Contains()
- Contains.Item() -> .Contains()
- Description attribute -> [Property("Description", "...")]
- Update test expectation: NUnit Description attribute now converts to Property
instead of being removed
- All 864 migration tests pass (520 NUnit + 144 MSTest + 208 XUnit)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
SummaryAdds comprehensive migration test coverage (864 tests) and fixes critical bugs in code fixers for NUnit/MSTest/XUnit migration: stale node references in multi-class files, sibling attribute preservation, and NUnit assertion/attribute handling improvements. Critical IssuesNone found ✅ SuggestionsCode Quality Observations (Non-blocking)
TUnit Rules Compliance
Verdict✅ APPROVE - No critical issues. The changes properly fix Roslyn syntax tree mutation bugs and add comprehensive test coverage. All 864 tests pass as documented. |
Summary
Does.Contain(),Contains.Item(), and convertDescriptionattribute to[Property("Description", "...")]Test plan
dotnet test -- --treenode-filter "/*/*/NUnitMigrationAnalyzerTests/*"- 520 tests passdotnet test -- --treenode-filter "/*/*/MSTestMigrationAnalyzerTests/*"- 144 tests passdotnet test -- --treenode-filter "/*/*/XUnitMigrationAnalyzerTests/*"- 208 tests pass🤖 Generated with Claude Code