Skip to content

test(argparse): group tests by behavior - #4116

Merged
peter-jerry-ye merged 1 commit into
mainfrom
codex/argparse-semantic-test-groups
Aug 20, 2026
Merged

test(argparse): group tests by behavior#4116
peter-jerry-ye merged 1 commit into
mainfrom
codex/argparse-semantic-test-groups

Conversation

@peter-jerry-ye

@peter-jerry-ye peter-jerry-ye commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Why

The argparse test suite used historical generic, black-box, and coverage filenames even though those files all held black-box tests. Related behaviors were spread across the three files, making tests harder to find and maintain.

What changed

Tests are now organized by behavior: command setup, options, positionals, relationships, subcommands, globals, help, and errors. The dedicated rejected-configuration and white-box test suites remain unchanged.

Why this is correct

This is a file-organization-only change: it preserves every moved test name and leaves the test bodies unchanged.

Scope

The change only replaces the three historical test-file groupings; it does not alter argparse behavior or public APIs.

@coveralls

coveralls commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 6231

Coverage remained the same at 90.734%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 17969
Covered Lines: 16304
Line Coverage: 90.73%
Coverage Strength: 332050.85 hits per line

💛 - Coveralls

@peter-jerry-ye
peter-jerry-ye force-pushed the codex/argparse-semantic-test-groups branch from 49c5182 to 174a9a1 Compare August 20, 2026 08:08
@peter-jerry-ye
peter-jerry-ye enabled auto-merge (rebase) August 20, 2026 08:08
@peter-jerry-ye
peter-jerry-ye merged commit 18d5212 into main Aug 20, 2026
16 checks passed
@peter-jerry-ye
peter-jerry-ye deleted the codex/argparse-semantic-test-groups branch August 20, 2026 08:19
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.

2 participants