Skip to content

docs: correct MTP single-test filter syntax in CLAUDE.md - #183

Merged
ivanball merged 1 commit into
mainfrom
docs/fix-mtp-filter-syntax
Aug 2, 2026
Merged

docs: correct MTP single-test filter syntax in CLAUDE.md#183
ivanball merged 1 commit into
mainfrom
docs/fix-mtp-filter-syntax

Conversation

@ivanball

@ivanball ivanball commented Aug 2, 2026

Copy link
Copy Markdown
Owner

What

Corrects the single-test filter syntax documented in CLAUDE.md.

Before After
by method -- -method "*Pattern*" -- --filter-method "*Pattern*"
by class -- -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:

$ dotnet test --project Tests/Architecture/... -- --filter-class "*ModuleIsolationTests*"
Passed!  total: 6  failed: 0  succeeded: 6

$ dotnet test --project Tests/Architecture/... -- -class "*ModuleIsolationTests*"
total: 0  ...  Test run completed with non-success exit code: 5

Scope

Docs-only, one line changed (two in MMCA.Helpdesk). The workspace root CLAUDE.md carries the same correction, applied outside this PR since it is not tracked in any repo.

🤖 Generated with Claude Code

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>
@ivanball
ivanball merged commit eae6072 into main Aug 2, 2026
13 checks passed
@ivanball
ivanball deleted the docs/fix-mtp-filter-syntax branch August 2, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant