docs: correct MTP single-test filter syntax in CLAUDE.md - #183
Merged
Conversation
The documented `-- -method` / `-- -class` flags are rejected by the xUnit v3 runner (3.2.2) used by all four repos: the run exits with code 5 and zero tests executed. The working Microsoft Testing Platform flags are `--filter-method` and `--filter-class`. Verified in MMCA.Helpdesk against the architecture test project: `-- --filter-class "*ModuleIsolationTests*"` runs 6 tests and passes, while `-- -class "*ModuleIsolationTests*"` exits 5 with 0 tests run. Docs-only change. The workspace root CLAUDE.md carries the same fix. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
What
Corrects the single-test filter syntax documented in
CLAUDE.md.-- -method "*Pattern*"-- --filter-method "*Pattern*"-- -class "*Pattern*"-- --filter-class "*Pattern*"Why
The documented flags are rejected by the xUnit v3 runner (3.2.2) that all four repos use under Microsoft Testing Platform. The run does not error loudly: it exits with code 5 having executed zero tests, which reads as "nothing matched my filter" rather than "my flag was wrong".
Verified in MMCA.Helpdesk against the architecture test project:
Scope
Docs-only, one line changed (two in MMCA.Helpdesk). The workspace root
CLAUDE.mdcarries the same correction, applied outside this PR since it is not tracked in any repo.🤖 Generated with Claude Code