simplecov

Configure SimpleCov and formatters to generate Ruby and Rails coverage reports.

2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/damacus/agent-skills --skill simplecov-damacus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplecov
Source: https://github.com/damacus/agent-skills/tree/main/skills/simplecov
Command: npx skills add https://github.com/damacus/agent-skills --skill simplecov-damacus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintain high test coverage in Ruby and Rails applications by automating SimpleCov configuration, generating reports, and surfacing coverage gaps to guide improvements.

Core Features & Use Cases

  • Setup and configuration for SimpleCov and SimpleCov Console formatter, with Rails integration
  • Enforces branch coverage, thresholds, and groupings to direct targeted test improvements
  • Integrates with RubyCritic for holistic code quality feedback
  • Supports CI/CD workflows and configurable environments to merge coverage results

Quick Start

Run the test suite with coverage enabled to generate a report and identify coverage gaps.

Frequently Asked Questions about simplecov

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

FAQPage Schema
How do I set up SimpleCov branch coverage and enforce thresholds in a Rails application?

Configure SimpleCov branch coverage and threshold enforcement by initializing the gem with specific tracking options in your Rails test helper. This setup analyzes coverage gaps and fails builds when metrics drop below defined limits.

What's the best way to generate HTML and Console test coverage reports for Ruby projects?

Generate HTML and Console test coverage reports for Ruby projects by configuring SimpleCov with its Console formatter. This produces actionable, per-file grouped reports that surface coverage gaps directly in your local development environment.

Does SimpleCov work with CI workflows to merge coverage results across different environments?

Yes, SimpleCov works with CI workflows to merge coverage results across different configurable environments. This allows you to aggregate test coverage data from parallel test suites into a single comprehensive report.

Can I integrate RubyCritic with SimpleCov for holistic code quality feedback?

Yes, you can integrate RubyCritic with SimpleCov to receive holistic code quality feedback alongside test coverage metrics. This combination analyzes both code complexity and coverage gaps to guide targeted improvements in Ruby applications.

How do I group SimpleCov coverage reports by Rails controllers, models, services, and jobs?

Group SimpleCov coverage reports by Rails controllers, models, services, and jobs by defining custom groupings in your configuration file. This per-file grouping organizes coverage data logically to help identify untested application components.