Skip to content
pubscout

test_coverage_badge

0.3.2, released 2 years ago by muha.dev

A CLI tool to generate and display test coverage badges for Dart projects.

$ flutter pub add test_coverage_badge
Source repository

What it does

It provides a command-line interface to easily generate test coverage badges based on your project's test results or a provided lcov.info file. This helps visualize test coverage directly in your repository.

AI-written summary of version 0.3.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to generate a visual test coverage badge for your Dart or Flutter project.
  • You want a simple CLI command to update your coverage badge locally or in CI.

Skip it when

  • You do not use tests or lcov coverage reports in your project.
  • You manage your badges exclusively through third-party CI services like Codecov or Coveralls.

Strengths

  • Simple CLI usage with a single command.
  • Supports custom coverage file paths via arguments.

Weaknesses

  • Limited to badge generation based on coverage files.
  • Does not provide advanced analytics beyond generating the badge image.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2

Install as a dev dependency and run via dart run test_coverage_badge.

dart run test_coverage_badge

Alternatives

Packages that do the same job and could replace test_coverage_badge.

  • patrol_cli

    Command-line tool to run and debug Patrol UI tests on multiple platforms

  • coverde

    A CLI tool for optimizing test execution and manipulating code coverage trace files.

  • bdd_widget_test

    Generate Flutter widget tests from Gherkin feature files

  • fluttersdk_dusk

    Flutter E2E test driver for LLM agents and CLI via VM Service extensions without a test harness.

Works with

Packages commonly used together with test_coverage_badge: ones it builds on, ones built on it, and its own family.