Commit Graph

4 Commits

Author SHA1 Message Date
Dicklesworthstone c5cc27fca8 fix(scripts): avoid strict feature in coverage helpers 2026-05-08 05:16:12 -04:00
Dicklesworthstone 46dfd72aa9 fix(scripts): rch-wrap coverage helpers 2026-05-08 05:10:42 -04:00
Cass Agent 278044df3e perf(coverage): Run tests once and generate reports from collected data
Optimization to coverage.sh:
- Run tests ONCE with --no-report flag
- Use 'cargo llvm-cov report' to generate LCOV, JSON, HTML from collected data
- Add jq dependency check with helpful install message

Previously the script would re-run tests for each report format.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 18:10:06 -05:00
Cass Agent 73cd0780d3 feat(ci): Add test coverage infrastructure with cargo-llvm-cov (hlz9)
Add comprehensive test coverage reporting infrastructure:

- scripts/coverage.sh: Generate HTML, LCOV, JSON coverage reports locally
  - Supports --quick (skip HTML), --open (view in browser)
  - Excludes test code from coverage metrics

- scripts/coverage-uncovered.sh: Identify untested code paths
  - Shows missing lines with context
  - Supports --fail mode with configurable threshold

- .github/workflows/coverage.yml: CI coverage integration
  - Runs on push/PR to main
  - Uploads to Codecov
  - Generates coverage summary in PR comments
  - 60% coverage warning threshold (soft gate)

- .cargo/config.toml: Cargo configuration
  - Coverage exclusion patterns
  - Cargo aliases: cov, cov-html, cov-json
  - Build optimization settings

Usage:
  ./scripts/coverage.sh --open    # Generate and view report
  ./scripts/coverage-uncovered.sh --fail --threshold=70  # CI gate

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 17:58:40 -05:00