Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Coverage Gutter

See at a glance which lines a test run actually covered, right in the editor gutter — without leaving Vix™. Vix visualizes an existing coverage report; it doesn’t run a coverage tool itself.

Generating a report

Run whatever coverage tool your project uses, and have it write an LCOV (.info) or Cobertura XML report:

cargo llvm-cov --lcov --output-path lcov.info   # lcov.info
pytest --cov --cov-report=xml           # coverage.xml, Cobertura format
go test -coverprofile=coverage.out && gocov convert coverage.out | gocov-xml > coverage.xml

Vix on itself

The GitHub CI coverage job (advisory — it never blocks a merge) runs bin/test-coverage (cargo llvm-cov) and uploads cobertura.xml, lcov.info, summary.json and the HTML report as the cobertura workflow artifact. Download cobertura.xml into the repo root and use Tools → Load Coverage File… to see Vix’s own coverage in Vix’s gutter. Locally: make coverage (the same command; reports land in target/llvm-cov/). It needs cargo install cargo-llvm-cov and rustup component add llvm-tools-preview.

Using it

Tools → Load Coverage File… prompts for the report’s path (relative paths resolve from the workspace root) and shows the gutter immediately. Each line gets a colored bar:

  • Green — covered (executed).
  • Red — uncovered (never executed).
  • Yellow — partially covered (executed, but not every branch was taken — only reported when the format records branch data).

Tools → Toggle Coverage Gutter shows/hides it again without re-reading the file — reload with Load Coverage File… after a fresh test run.

The coverage gutter and the git diff gutter share one gutter-sign column, so only one shows per buffer at a time: while coverage is visible, the diff gutter is skipped for that tab.

Set the coverage_path setting to pre-fill Load Coverage File…’s prompt with your project’s usual report path, so accepting it is a single keystroke after a test run.

See the specification at crates/vix-coverage/spec/index.md.


Vix™ and Vix IDE™ are trademarks.