FLUTTER ECOSYSTEM

test_coverage

Command line utility to run tests in Dart VM and collect coverage data.

Latest version
0.5.0
30-day downloads
5.3K
Likes
44
Pub points
30

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A command-line utility for running Dart tests on the VM and collecting coverage data. It helps developers measure how much of their code is exercised by tests, enabling better test quality and identification of untested code paths. The tool integrates seamlessly into CI/CD pipelines and supports both unit and integration tests. Coverage reports can be generated in various formats for analysis and reporting. Designed for simplicity and efficiency, it's particularly useful for teams aiming to maintain high test coverage standards.

Use cases
  • Measuring test coverage in CI/CD workflows
  • Identifying untested code regions
  • Generating coverage reports for team reviews
  • Integrating with automated testing pipelines
  • Validating test completeness before release
  • Monitoring coverage trends over time
Key features
  • Runs tests on the Dart VM
  • Collects detailed code coverage data
  • Supports unit and integration tests
  • Generates coverage reports
  • Easy CLI integration
  • Compatible with Flutter and Dart projects
Suitable for
  • Dart and Flutter developers
  • Teams focused on test quality
  • CI/CD automation engineers
  • Projects requiring coverage compliance
  • Developers improving test coverage
  • Quality assurance teams
Considerations
  • Requires Dart SDK setup
  • No built-in visualization (external tools needed)
  • Limited to VM-based testing
  • Coverage data not available for web or mobile platforms
  • May require additional configuration for complex projects
  • Does not support hot reload during testing
Supported platformsNot available

Install package

flutter pub add test_coverage

Categories

Dependencies

Dependency list 5 items

Source repository

Related projects