Skip to content

chore: add local test coverage via cargo-llvm-cov#17

Merged
rrbe merged 2 commits into
masterfrom
chore/coverage
Jun 1, 2026
Merged

chore: add local test coverage via cargo-llvm-cov#17
rrbe merged 2 commits into
masterfrom
chore/coverage

Conversation

@rrbe
Copy link
Copy Markdown
Owner

@rrbe rrbe commented Jun 1, 2026

What

Add on-demand local test-coverage tooling backed by cargo-llvm-cov.

New Makefile targets:

  • make coverage — per-file coverage summary in the terminal
  • make coverage-html — HTML report under target/llvm-cov/html/index.html
  • make coverage-lcov — emit lcov.info for external tooling

Scope / non-goals

Coverage is local-only and on-demand: it is intentionally not wired into CI and not part of make check, so it never gates merges. One-time setup is cargo install cargo-llvm-cov + rustup component add llvm-tools-preview (documented in CLAUDE.md).

Also

  • .gitignore: ignore the generated lcov.info
  • CLAUDE.md: document the targets, the one-time setup, and that coverage is not a CI gate

Initial numbers (baseline)

Line coverage 69.33% overall (regions 68.53%, functions 78.10%). Most modules sit at 80–98%; the main outlier is tui/mod.rs at ~15% (the interactive event loop, which is hard to unit-test) — it accounts for the bulk of the uncovered lines.

🤖 Generated with Claude Code

rrbe and others added 2 commits June 1, 2026 14:52
Add `make coverage` / `coverage-html` / `coverage-lcov` targets backed by
cargo-llvm-cov. Coverage is a local-only, on-demand tool — it is not wired
into CI and is not part of `make check`. Document the targets and one-time
setup in CLAUDE.md, and git-ignore the generated lcov.info.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop the standalone Coverage section; mention the targets in one line
alongside the other make targets, matching how `test` is listed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rrbe rrbe merged commit ee720da into master Jun 1, 2026
5 checks passed
@rrbe rrbe deleted the chore/coverage branch June 1, 2026 07: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.

1 participant