Skip to content
pubscout

test_cov_console

0.2.2, released 5 years ago by an unverified publisher

Read lcov.info files and print coverage reports directly to the console

$ flutter pub add test_cov_console
Source repository

What it does

Reads standard lcov.info test coverage files and outputs a formatted report to the console. It supports line, branch, and function metrics, filtering options, multiple lcov files, and CSV output generation.

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

Use it when

  • You want to view test coverage summaries directly in your terminal
  • You need to export lcov coverage reports into CSV format
  • You run multi-module projects and need to aggregate coverage reports

Skip it when

  • You require an HTML-based visual coverage report viewer
  • You do not use lcov coverage files

Strengths

  • Supports multiple lcov.info files and multi-module project structures
  • Offers various filtering options such as file exclusion and inclusion
  • Can export coverage data to CSV files

Weaknesses

  • Limited to console text output and CSV exports rather than rich HTML reports
  • No graphical web UI out of the box

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

Add test_cov_console as a dev_dependency in pubspec.yaml and run flutter test --coverage before invoking the tool.

flutter pub run test_cov_console

Alternatives

Packages that do the same job and could replace test_cov_console.

  • 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.