Conversation
Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix filtering issue by category in test execution
Fix documentation to use --treenode-filter instead of unsupported --filter syntax
Dec 9, 2025
There was a problem hiding this comment.
Pull request overview
This PR fixes critical documentation errors where TUnit-specific CLI syntax was incorrectly shown using VSTest's --filter option, which TUnit does not support. The changes replace incorrect filter syntax with TUnit's --treenode-filter option across CI/CD examples.
- Updated all examples from
--filter "Category=X"to correct-- --treenode-filter "/*/*/*/*[Category=X]"syntax - Added helpful notes about .NET 10 SDK's simplified syntax (
--treenode-filter "/**[Category=X]") that doesn't require the--separator - Ensures users can successfully filter tests by category in CI/CD pipelines
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
docs/docs/examples/tunit-ci-pipeline.md |
Fixed GitLab CI and GitHub Actions examples to use correct --treenode-filter syntax; added .NET 10 SDK note |
docs/docs/advanced/performance-best-practices.md |
Fixed CI/CD optimization examples to use correct --treenode-filter syntax; added .NET 10 SDK note |
This was referenced Dec 10, 2025
This was referenced Jan 26, 2026
This was referenced Feb 2, 2026
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.
Please check the following before creating a Pull Request
Description
TUnit doesn't support VSTest's
--filterCLI option. Documentation incorrectly showed using--filter "Category=X"which results in "Unknown option '--filter'" errors.Changes
CI/CD Pipeline Documentation (
docs/docs/examples/tunit-ci-pipeline.md)Performance Best Practices (
docs/docs/advanced/performance-best-practices.md)Syntax
Incorrect (VSTest):
Correct (TUnit):
Both
dotnet runanddotnet testsupport the tree-node filter syntax with the--separator (not needed in .NET 10+).Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.