Skip to content

test: trim low-value tests, parallelize suite, and scope e2e to main#144

Merged
wpfleger96 merged 4 commits into
mainfrom
claude/test-suite-audit-removal-yspk7f
Jul 19, 2026
Merged

test: trim low-value tests, parallelize suite, and scope e2e to main#144
wpfleger96 merged 4 commits into
mainfrom
claude/test-suite-audit-removal-yspk7f

Conversation

@wpfleger96

@wpfleger96 wpfleger96 commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Removes about 130 tests that asserted constants against their own literal values, exercised mocks or test-local fakes instead of real code, or duplicated coverage another test tier already provided; parallelizes the remaining suite; and narrows the e2e workflow to the OS legs that exercise real cross-platform behavior.

This repository is public, so its GitHub Actions runs aren't billed, but the e2e suite still ran redundantly on every pull request — Ubuntu twice (once via ci.yml, once via e2e.yml), plus macOS and Windows — while many unit tests carried no real regression-detection value.

  • Remove vacuous, tautological, and duplicate tests across the unit, integration, and e2e suites, keeping the e2e tests that exercise real shell sourcing, shell functions, and config validation
  • Replace the only e2e coverage of info and completions status with faster in-process CliRunner tests in tests/integration/test_cli.py
  • Add pytest-xdist with -n auto in addopts so every pytest invocation runs parallel (non-e2e suite ~26s to ~18s, e2e suite ~26s to ~6s on 4 cores)
  • Run e2e.yml's macOS and Windows legs only on pushes to main, since pull requests already get full Ubuntu e2e coverage through ci.yml

claude added 4 commits July 19, 2026 20:28
A full-suite audit found ~130 cases that assert constants against their own
literals, test mocks or test-local fakes instead of source, only check exit
codes, or duplicate coverage that integration tests already provide. Removing
them trims CI wall-time with no loss of regression protection; the e2e tier
keeps only tests that exercise real shell/OS behavior.
The deleted e2e smokes were the sole coverage of info and completions status
but only asserted exit codes via subprocess on every OS leg. In-process
CliRunner equivalents keep the crash guard at a fraction of the cost.
The ubuntu leg duplicated ci.yml's e2e job, and the macOS/Windows legs only
provide signal for shell-portability tests that rarely change in PRs. PRs
keep full ubuntu e2e via ci.yml; cross-OS runs now gate main instead.
Add -n auto to addopts so every pytest invocation (local runs, the
pre-commit hook, and CI) distributes tests across cores. Accepted
trade-off: targeted single-test runs pay ~2s of worker startup.
@wpfleger96 wpfleger96 changed the title test: trim low-value tests and scope e2e CI to main test: trim low-value tests, parallelize suite, and scope e2e to main Jul 19, 2026
@wpfleger96
wpfleger96 merged commit e28ecb9 into main Jul 19, 2026
8 checks passed
@wpfleger96
wpfleger96 deleted the claude/test-suite-audit-removal-yspk7f branch July 19, 2026 21:07
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