dart-collect-coverage

Collect Dart and Flutter test coverage and generate LCOV reports.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/yash-garg/pi-config --skill dart-collect-coverage-yash-garg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dart-collect-coverage
Source: https://github.com/yash-garg/pi-config/tree/main/skills/dart-collect-coverage
Command: npx skills add https://github.com/yash-garg/pi-config --skill dart-collect-coverage-yash-garg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the process of collecting Dart and Flutter test coverage data and producing LCOV reports, reducing the manual setup required for coverage analysis.

Core Features & Use Cases

  • Coverage Collection Workflow: Guides developers through adding the coverage package, running tests, and generating coverage artifacts.
  • LCOV Report Generation: Creates standardized LCOV output for integration with coverage reporting tools and CI pipelines.
  • Advanced Coverage Control: Supports manual VM service based collection and coverage ignore directives for detailed reporting scenarios.

Quick Start

Use the dart-collect-coverage skill to generate an LCOV coverage report for my Dart or Flutter project.

Frequently Asked Questions about dart-collect-coverage

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

FAQPage Schema
How do I generate an LCOV test coverage report for a Dart project?

To generate an LCOV test coverage report for a Dart project, you need to add the coverage package, execute your tests, and validate the LCOV formatting from the collected JSON coverage data.

Can I collect Flutter widget test coverage using this approach?

Yes, Flutter widget test coverage can be collected using this approach by running Flutter tests and converting the resulting VM service coverage data into standardized LCOV output.

What is the best way to collect Dart coverage data manually via the VM service?

The best way to collect Dart coverage data manually is by connecting directly to the VM service during test execution, allowing for advanced coverage control and detailed reporting scenarios.

How do coverage ignore directives affect Dart test coverage reports?

Coverage ignore directives exclude specific code blocks from analysis, ensuring that ignored sections do not impact the final LCOV test coverage reports generated for your Dart or Flutter application.

Does this Dart coverage collection workflow support CI pipeline integration?

Yes, this Dart coverage collection workflow supports CI pipeline integration by producing standardized LCOV output files that can be directly consumed by CI coverage reporting tools.

Why are my Dart test coverage reports missing LCOV format validation?

Dart test coverage reports may lack LCOV format validation if the workflow skips converting the collected JSON coverage artifacts into standardized LCOV output after test execution.