awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
simplecov-ruby avatar

simplecov-ruby/simplecov

0
View on GitHub↗

Simplecov

SimpleCov is a code coverage library for Ruby. It tracks which lines, branches, and methods of Ruby code run during a test suite and reports how thoroughly the tests exercise the codebase. Behavior is declared in a start block or a project-level config file, where you set filters, groups, profiles, and per-criterion limits.

Beyond measurement, it works as a CI gate. It can fail a build when coverage drops below minimums, falls against a baseline, or leaves changed lines in a git diff untested. Per-file floors can be checked in and only ratchet upward, and uncovered lines can be emitted as inline annotations for GitHub, GitLab, Azure, TeamCity, Buildkite, or reviewdog. It also merges results from separate suites, parallel test workers, and subprocesses into one unified result, with a locked shared cache so concurrent runs don't overwrite each other.

Other capabilities build on recorded coverage. Per-test attribution maps each line to the tests that executed it, which supports selecting only the tests affected by a change and finding redundant tests. Low-overhead first-execution tracking can be run in live processes and compared against test coverage to find dead code and production code that lacks tests. Reports come as browsable HTML, JSON, lcov, Cobertura XML, Markdown, terminal tables, and badges. A command-line tool covers running tests with coverage, watching files, serving reports, and inspecting results. Branch, method, and eval coverage are unavailable on JRuby, where enforcement is limited to line coverage.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Code Coverage Analysis - Measures which lines, branches, and methods of Ruby and Rails application code run during a test suite and reports the results readably.
  • Ruby Coverage API Integrations - Hooks into Ruby's native coverage facility to track which lines, branches, and methods run during a test suite and reports test thoroughness.
  • Coverage Threshold Validation - Declares minimum, maximum, exact, per-file, per-group, and maximum-drop limits for line, branch, or method coverage that fail the run when violated.
  • Quality Gates - Fails builds and pull requests when coverage falls below minimums, regresses against a baseline, or leaves changed lines untested.
  • Changed-Line Coverage Gates - Computes line, branch, and method coverage for only the lines a diff touched and fails below a minimum, gating each change.
  • Coverage Result Merging - Merges coverage from separate suites, parallel workers and subprocesses by summing line and branch hits into one unified result.
  • Coverage Settings Configuration - Defines thresholds, groups, filters, and tracked criteria in a start block or config file, with minimums, maximum drops, and per-file limits.
  • Runtime Coverage Instrumentation - Hooks into the Ruby runtime's native coverage facility to count line, branch, method and first-execution hits without rewriting source files.
  • Code Coverage Reportings - Tracks which lines, branches and methods of Ruby code execute during tests and reports how thoroughly the suite exercises the codebase.
  • Unit Testing and Code Coverage - Tracks which lines and branches of Ruby code run during a test suite and reports how thoroughly the tests exercise the codebase.
  • Coverage Report Formats - Produces HTML coverage reports with searchable file navigation that stay fast and easy to browse on very large codebases.
  • Block-Based Configuration Interfaces - Lets behavior be declared in a start block or project config file with filters, groups, profiles and per-criterion limits.
  • Coverage Command-Line Tools - Provides a command-line tool to run tests with coverage, watch files, serve reports, and inspect results, with help and a manual page.
  • Pluggable Formatters - Passes collected coverage to interchangeable formatter classes or templates that render HTML, JSON, lcov, Cobertura XML or Markdown output.
  • Branch Coverage Tracking - Tracks whether each conditional branch was taken during tests, with an option to ignore synthetic implicit-else branches.
  • CI Coverage Annotations - Emits uncovered-line findings as native inline annotations for GitHub, GitLab, Azure, TeamCity, Buildkite and reviewdog.
  • Changed-Line Coverage Measurements - Measures coverage only on lines touched in a git diff against a base ref and can require every added line to be tested.
  • Coverage Diff Analysis - Scores only lines touched in a diff against a base reference and fails the build when new code falls below a chosen minimum.
  • Coverage Exclusion Directives - Disable line, branch, or method coverage for a span of code by placing enable and disable comments around it.
  • Coverage Exclusions - Excludes marked code regions from line, branch, or method coverage using enable and disable comments, including within measured view templates.
  • Dead Code Detection - Crosses production coverage with test coverage to list code run by neither, code only tests exercise, and production code lacking tests.
  • Per-File Coverage Floors - Writes a checked-in baseline giving each file its own minimum at current coverage, tightening over time so coverage cannot slide back.
  • Per-Test Coverage Recording - Records which lines each individual test executed in one instrumented run and saves the mapping to a coverage file.
  • Code Coverage Collection - Lets users tailor how coverage is collected, filtered, and reported through a start block or project config file.
  • Coverage Report File Filters - Narrow the report to chosen paths with positive matchers, drop excluded files first, and list never-loaded files at zero percent.
  • Parallel Runner Coordination - Detects which parallel worker finishes last and waits for siblings through pluggable adapters, so concurrent workers stop overwriting each other's results.
  • Parallel Test Coverage Merging - Recognizes parallel test runners, labels suites by process number and locks the shared cache while merging so concurrent runs cannot corrupt data.
  • Per-File Coverage Floors - Records a checked-in file of per-file minimums that only ratchet upward while new files are held to the standard minimum.
  • Per-Test Coverage Attribution - Records which test executed each line into a stored mapping that powers covering-test queries, affected-test selection and redundancy checks.
  • Production Code Usage Tracking - Records which lines run in live processes using low-overhead first-execution tracking, with flush interval, sampling, and buffer limits set at startup.
  • Change-Based Test Selection - Runs only tests that touch changed code using recorded test-to-line mappings, falling back to the full suite when the mapping cannot be trusted.
  • Terminal Coverage Inspection - Provides a command-line tool to watch files, show annotated source, check report freshness, list worst files and generate badges.
  • Per-Test Coverage Attribution - Distinguishes lines executed by tests from load-time lines and lists the covering tests behind each line in the HTML report.
4,925 stars·583 forks·Ruby·MIT·6 views

Star history

Star history chart for simplecov-ruby/simplecovStar history chart for simplecov-ruby/simplecov

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Projects sharing features with Simplecov

These projects share indexed features with Simplecov. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • colszowka/simplecovcolszowka avatar

    colszowka/simplecov

    4,902View on GitHub↗

    SimpleCov is a Ruby code coverage tool and analysis engine used to track which lines, branches, and methods of code execute during tests. It functions as a coverage threshold enforcer and test suite aggregator, recording execution data to identify untested areas of an application. The tool distinguishes itself through the ability to merge coverage results from parallel worker processes and subprocesses into a single unified report. It supports baseline comparison to detect coverage regressions and can gather data from code executed via dynamic evaluation methods, such as those used in templat

    Ruby
    View on GitHub↗4,902
  • jacoco/jacocojacoco avatar

    jacoco/jacoco

    4,580View on GitHub↗

    JaCoCo is a Java code coverage tool and bytecode instrumenter that measures which parts of source code are executed during tests. It functions as a runtime agent to monitor application execution on the fly or as a library for offline bytecode instrumentation, allowing it to capture execution data in environments where runtime agents are restricted. The project distinguishes itself by providing both dynamic and static instrumentation paths to track execution. It includes a runtime agent for on-the-fly monitoring and the ability to modify compiled class files before execution. It further enable

    Javabytecodecoveragegroovy
    View on GitHub↗4,580
  • gotwarlost/istanbulgotwarlost avatar

    gotwarlost/istanbul

    8,662View on GitHub↗

    Istanbul is a JavaScript code coverage tool and instrumentation engine that measures the execution of statements, lines, functions, and branches. It functions as a test coverage analysis tool capable of monitoring code across unit, functional, and browser tests to identify untested areas of a codebase. The project distinguishes itself through a transparent instrumentation engine that uses module loader hooks to inject tracking code without requiring manual source modifications. It supports distributed test reporting by aggregating fragmented coverage data from multiple concurrent processes in

    JavaScript
    View on GitHub↗8,662
  • avajs/avaavajs avatar

    avajs/ava

    20,849View on GitHub↗

    Ava is a test runner for JavaScript and TypeScript designed to execute test suites with a focus on concurrency and isolation. It serves as a concurrent test executor that runs test files in parallel across multiple processes to reduce total runtime and prevent state leakage between suites. The project features a built-in snapshot testing framework that saves large data structures to disk and compares subsequent executions to detect regressions via diffs. It is also compatible with the Test Anything Protocol, allowing it to export results for use with external reporting tools. Its capability

    JavaScriptassertasyncasync-functions
    View on GitHub↗20,849
Compare all 30 related projects→

Frequently asked questions

What does simplecov-ruby/simplecov do?

SimpleCov is a code coverage library for Ruby. It tracks which lines, branches, and methods of Ruby code run during a test suite and reports how thoroughly the tests exercise the codebase. Behavior is declared in a start block or a project-level config file, where you set filters, groups, profiles, and per-criterion limits.

What are the main features of simplecov-ruby/simplecov?

The main features of simplecov-ruby/simplecov are: Code Coverage Analysis, Ruby Coverage API Integrations, Coverage Threshold Validation, Quality Gates, Changed-Line Coverage Gates, Coverage Result Merging, Coverage Settings Configuration, Runtime Coverage Instrumentation.

Which projects share features with simplecov-ruby/simplecov?

Projects with overlapping indexed features include: colszowka/simplecov — SimpleCov is a Ruby code coverage tool and analysis engine used to track which lines, branches, and methods of code… jacoco/jacoco — JaCoCo is a Java code coverage tool and bytecode instrumenter that measures which parts of source code are executed… gotwarlost/istanbul — Istanbul is a JavaScript code coverage tool and instrumentation engine that measures the execution of statements,… avajs/ava — Ava is a test runner for JavaScript and TypeScript designed to execute test suites with a focus on concurrency and… jslint-org/jslint — JSLint is a JavaScript code-quality tool that scans source text and reports errors, risky constructs, and style… unclebob/ub-mode — ub-mode is a set of instruction files and command-line checks that steer AI coding agents toward disciplined…