Skip to content

test: 12 new CLI tests, 99% coverage; docs sync PRs #93-#98 (#99) - #90

Merged
cschanhniem merged 2 commits into
mainfrom
feat/cli-coverage-docs-sync
Jun 28, 2026
Merged

cschanhniem merged 2 commits into
mainfrom
feat/cli-coverage-docs-sync

Conversation

@cschanhniem

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • python3 -m pytest -q — 1304 passed in ~1.3s
  • --cov=src --cov-report=term-missing — TOTAL 99% (14 uncovered lines)
  • Pre-push hook ran full test suite and passed
  • All new tests exercise real pipeline code (no mocks)

🤖 Generated with Claude Code

 (#99)

Test coverage:
- generate-batch: missing seeds file error + successful CSV generation
- batch-pack: full success path with JSON and markdown output
- pilot-panel: ranked file not found + blank-line skipping + success path (lines 521–571)
- novelty-check-broad: empty panel, missing refs, empty refs, empty sequence skip,
  CLOSE_RELATIVE classification and report output
- diversity-check: family structural warnings (TRYPSIN_STABILITY, ≥4 sites × 3 members),
  redundancy warning section, optimal-cluster-representatives section (optimal ≠ minimal)

CLI coverage: 86% → 99% (576 lines, 6 remaining structurally unreachable)
Total coverage: 96% → 99% (2171 lines, 14 remaining)
Test count: 1292 → 1304

Docs:
- ROADMAP.md v0.7.x extended to include PRs #93–#99
- DISCOVERY_PREDICTION.md tracking line extended through PR #99, bottom-line tag updated
…ports

- test_diversity_check_family_structural_warning: remove vacuous OR fallback;
  assert 'Family-Level Structural' directly (reviewer HIGH finding)
- test_pilot_panel_blank_lines: n_panel <= 2 → == 2, deterministic with --n 2
  and 3 distinct-seed candidates (reviewer MEDIUM finding)
- open() calls → context managers / Path.write_text throughout
  (reviewer LOW finding: Windows-safe file handling)
@cschanhniem
cschanhniem merged commit d05e7dc into main Jun 28, 2026
1 check failed
@cschanhniem
cschanhniem deleted the feat/cli-coverage-docs-sync branch June 28, 2026 17:58
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