Skip to content

test: remove vacuous and duplicate tests, enable xdist#135

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

test: remove vacuous and duplicate tests, enable xdist#135
wpfleger96 merged 2 commits into
mainfrom
claude/test-suite-audit-removal-l2s79o

Conversation

@wpfleger96

Copy link
Copy Markdown
Owner

Removes 86 low-value test functions (99 collected nodes, ~720 lines) surfaced by a full-suite audit, and turns on pytest-xdist parallelism that was already a declared dependency but never wired into addopts. Locally on 4 cores this takes the non-e2e suite from 83s to 26s and the e2e suite from 240s to 83s.

The e2e tier booted a fresh uvicorn subprocess for nearly every test even though most of those endpoints already had cheaper TestClient coverage in tests/integration/test_api/. Three parallel audits read every test file end-to-end and flagged only exact cross-tier duplicates, pure framework-mechanics assertions (e.g. pydantic's own 422 validation), and re-runs of an already-covered code path — every parsing edge case, algorithm-correctness test, and named regression test was left untouched.

  • tests/e2e/: cut 14 functions (27 nodes) — mostly the per-endpoint live-server sweep in test_api_server.py and returncode == 0-only stats checks
  • tests/integration/: cut 43 functions — largely pure-pydantic 422 checks and key-existence-only "shape" assertions already covered by a value-asserting sibling
  • tests/unit/: cut 29 functions — mostly cosmetic CLI-formatting tests and re-runs of an already-covered tolerance-matching engine
  • pyproject.toml: add -n auto to pytest addopts

Generated by Claude Code

claude added 2 commits July 19, 2026 20:25
An audit found 86 tests (99 nodes) that assert only framework mechanics,
duplicate a cheaper tier's coverage, or re-run already-proven code paths.
Biggest win is e2e: 27 of 57 nodes were per-test uvicorn boots or
subprocess runs fully covered by in-process TestClient/CliRunner tests.
pytest-xdist was a declared dev dependency but never invoked. On 4 cores
the suite drops from 83s to 26s (non-e2e, coverage on) and 240s to 83s
(e2e).
@wpfleger96
wpfleger96 merged commit 70ff07d into main Jul 19, 2026
9 checks passed
@wpfleger96
wpfleger96 deleted the claude/test-suite-audit-removal-l2s79o branch July 19, 2026 21:05
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