Skip to content

test: RED acceptance tests for #58 (Phase 1 MVP)#113

Open
crashfrog wants to merge 2 commits into
mainfrom
worktree-agent-ad8ccf2b
Open

test: RED acceptance tests for #58 (Phase 1 MVP)#113
crashfrog wants to merge 2 commits into
mainfrom
worktree-agent-ad8ccf2b

Conversation

@crashfrog
Copy link
Copy Markdown
Member

Summary

Test Coverage

  • .phrayaplan format (2 tests)
  • Use case detection (3 tests)
  • Task generation (2 tests)
  • VariantObservation fields (4 tests)
  • Coverage tracks (3 tests)
  • Query index multi-mapping (2 tests)
  • Filter operations (3 tests)
  • CLI integration (4 tests)
  • File formats (2 tests)
  • Error handling (2 tests)
  • MVP workflow (1 test)

Run Tests

cargo test --test issue_58_mvp_acceptance_tests -- --ignored

Resolves #58

🤖 Generated with Claude Code

crashfrog and others added 2 commits June 1, 2026 10:02
Add comprehensive RED acceptance tests for Issue #58 validating Phase 1 MVP
end-to-end for use cases 2, 3, 4 (case 1 deferred to Phase 2+).

Tests validate external contracts only: CLI interfaces, file formats, error codes.
All 28 tests are currently ignored and expected to fail (RED phase).

Coverage includes:
- .phrayaplan format (write/read round-trip, required fields)
- Use case detection (cases 2, 3, 4: ReadsWithRef, ContigsWithReads, ContigsOnly)
- Task list generation and structure
- VariantObservation fields (CIGAR, edit_distance, local_coverage, all_alleles)
- CoverageTrack quantization (to nearest 5) and RLE compression
- Query index with multi-mapping (score_ratio >= 0.95)
- Filter operations (min/max coverage, min/max mapq, composition)
- CLI integration (filter VCF/TSV/phraya output, thresholds)
- .phraya file format (observations + coverage track round-trip)
- Error handling (missing files, corrupt files)
- MVP end-to-end workflow (plan -> plan-tasks integration)

Filter to run only these tests:
  cargo test --test issue_58_mvp_acceptance_tests -- --ignored

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

Phase 1 MVP: Evidence-Informed Alignment with Deferred Filtering

1 participant