-
-
Notifications
You must be signed in to change notification settings - Fork 13
Update copilot instructions with MTP v2/xunit v3 test commands #855
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
Conversation
Co-authored-by: AArnott <3548+AArnott@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request updates the Copilot instructions to document the correct test command syntax for Microsoft.Testing.Platform v2 with xunit v3, replacing the outdated VSTest --filter syntax that no longer works with this configuration.
Changes:
- Added comprehensive testing section with 10+ working examples for MTP v2/xunit v3 test commands
- Updated all references from VSTest
--filtersyntax to MTP v2 syntax (--filter-method,--filter-class,--filter-trait, etc.) - Documented key differences between VSTest and MTP v2 test filtering approaches
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #855 +/- ##
==========================================
+ Coverage 82.50% 82.59% +0.09%
==========================================
Files 269 269
Lines 21321 21321
Branches 3071 3071
==========================================
+ Hits 17590 17610 +20
+ Misses 2709 2688 -21
- Partials 1022 1023 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The repository uses Microsoft.Testing.Platform v2 with xunit v3, but the copilot instructions still documented the legacy VSTest
--filtersyntax which doesn't work with this configuration.Changes
Testing section expanded with working examples:
-- --filter-method ClassName.MethodName-- --filter-class ClassName-- --filter-method "*Pattern*"-- --filter-trait "TraitName=value"and-- --filter-not-trait--framework net9.0dotnet run -- --list-testsKey syntax differences from VSTest:
--separator, not directly todotnet test--filter "TestCategory!=FailsInCloudTest"replaced with-- --filter-not-trait "FailsInCloudTest=true"--filter-method,--filter-class,--filter-namespace,--filter-trait, not query expressionsUpdated throughout:
All commands were verified working before documentation.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
f.feedz.io/opt/hostedtoolcache/dotnet/dotnet dotnet test --help(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.