Port MTP v2/xunit v3 test commands to copilot instructions #469
+61
−2
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.
Ports the changes from AArnott/Nerdbank.MessagePack#855 to update copilot instructions for Microsoft.Testing.Platform v2 / xunit v3.
Changes Made
Updated
.github/copilot-instructions.mdto replace outdated VSTest--filtersyntax with correct MTP v2/xunit v3 test commands.Added detailed testing section with working examples:
dotnet test --no-build -c Release-- --filter-method ClassName.MethodName-- --filter-class ClassName-- --filter-method "*Pattern*"-- --filter-traitand-- --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 expressionsValidation
All commands were verified working with the Library.Tests project before documentation.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.