Skip to content

Throw documented ArgumentError for unknown serial test names - #158

Merged
giordano merged 2 commits into
mainfrom
mg/parse-args-errors
Aug 8, 2026
Merged

Throw documented ArgumentError for unknown serial test names#158
giordano merged 2 commits into
mainfrom
mg/parse-args-errors

Conversation

@giordano

@giordano giordano commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

giordano and others added 2 commits August 8, 2026 21:09
`runtests` filtered the `serial` list down to testsuite keys before
`partition_tests` could validate it, so the ArgumentError promised by the
docstring was unreachable through the public API: a typo'd serial name was
silently dropped and the misspelled test ran in parallel — exactly the
hazard the `serial` option exists to prevent.

Validate the serial names against the full testsuite before command-line
filtering, so typos throw while names legitimately deselected by positional
arguments are still ignored.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@giordano
giordano merged commit af0d80e into main Aug 8, 2026
23 checks passed
@giordano
giordano deleted the mg/parse-args-errors branch August 8, 2026 20:57
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