dart-collect-coverage

Collect Dart and Flutter test coverage data and generate LCOV reports.

Updated Nov 23, 2025
One-click install
npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill dart-collect-coverage-manuelbrandner85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dart-collect-coverage
Source: https://github.com/manuelbrandner85/Weltenbibliothekapp/tree/main/.agents/skills/dart-collect-coverage
Command: npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill dart-collect-coverage-manuelbrandner85

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires coverage.

What problem does it solve?

This Skill solves the challenge of measuring code quality by automating the collection of test coverage data and generating standardized LCOV reports for Dart and Flutter projects.

Core Features & Use Cases

  • Automated Coverage Collection: Executes test suites and captures VM coverage data in one command.
  • LCOV Formatting: Converts raw JSON coverage data into industry-standard LCOV reports for CI/CD integration.
  • Granular Control: Supports inline directives to ignore specific lines, blocks, or files from coverage metrics.
  • Use Case: Use this tool to ensure your Flutter application meets minimum testing thresholds before merging pull requests.

Quick Start

Run the dart-collect-coverage skill to execute all tests and generate a fresh LCOV report in your project root.

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 LCOV reports for Dart and Flutter projects?

You generate LCOV reports by running this skill to execute your test suite and capture Dart VM service data. It converts raw JSON coverage data into industry-standard LCOV reports for CI/CD integration.

What do I need to collect test coverage data for Flutter?

You need the coverage package added as a development dependency and access to the Dart VM service for data extraction. The skill automates the collection process from there.

Can I ignore specific lines or files from my Dart test coverage metrics?

Yes, you can exclude specific lines, blocks, or files from Dart test coverage metrics using granular inline exclusion directives. This ensures untested code paths are omitted from your quality assurance report.

When do I need an LCOV report for my Dart application?

You need an LCOV report when integrating Dart quality assurance into CI/CD pipelines. It helps identify untested code paths and verify your Flutter application meets minimum testing thresholds before merging pull requests.

Why does my Dart test coverage collection fail without the coverage package?

Dart test coverage collection fails because the coverage package is a required development dependency. Without it and access to the Dart VM service, the skill cannot extract the raw data needed to generate LCOV reports.