check-rust-coverage

Analyze Rust coverage reports to identify untested code lines per crate or file.

6.2k|590|Updated May 5, 2016
One-click install
npx skills add https://github.com/RediSearch/RediSearch --skill check-rust-coverage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-rust-coverage
Source: https://github.com/RediSearch/RediSearch/tree/main/.skills/check-rust-coverage
Command: npx skills add https://github.com/RediSearch/RediSearch --skill check-rust-coverage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust projects often have gaps in test coverage, leading to unvalidated behavior and hidden bugs. This Skill helps identify exactly which lines of code are not exercised by tests.

Core Features & Use Cases

  • Analyze coverage reports to pinpoint uncovered lines per file.
  • Guide targeted test writing by surfacing high-priority gaps across crates or modules.
  • Report-ready outputs that summarize missing lines to accelerate remediation.

Quick Start

Run the check-rust-coverage skill against your Rust workspace to identify untested lines and generate a focused test plan.

Frequently Asked Questions about check-rust-coverage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify untested lines in my Rust project?

Rust test coverage analysis identifies exactly which lines of code aren't exercised by your tests. Use cargo with coverage tooling like llvm-cov to compute coverage reports, then analyze them to pinpoint untested lines per file or crate.

Can I use coverage analysis with Rust monorepos?

Yes, coverage analysis works with monorepos by targeting per-crate and per-file coverage gaps. This lets you identify untested lines across multiple crates in a single workspace and guide targeted test development for each.

What do I need to check Rust code coverage?

You need a Rust toolchain with cargo and coverage instrumentation tooling like llvm-cov installed. These prerequisites enable computing coverage reports and reporting exact uncovered lines across your project.

How do I prioritize which untested code to write tests for first?

Coverage reports surface high-priority gaps by showing untested lines per file and crate. Focus on areas with the most coverage gaps to accelerate test development and remediation across your codebase.

Does Rust coverage analysis work with static analysis in CI/CD?

Coverage analysis integrates into testing workflows to detect uncovered lines, complementing static analysis. Generate report-ready outputs that summarize missing lines to guide test writing and catch validation gaps before deployment.