
dart-collect-coverage
Collect coverage using the coverage packge and create an LCOV report
by dart-langFree
Description
dart-collect-coverage is an agent skill from the Dart team's skills collection, listed on skills.sh. It helps an AI agent collect test coverage for Dart and Flutter projects and produce an LCOV report. The skill's testing fundamentals describe three kinds of tests: unit tests for individual functions, methods or classes, component and widget tests that check behavior, layout and interaction with mock objects from package:mockito, and integration tests that verify whole app flows on simulated or real devices. It tells the agent to use package:test for Dart projects and flutter_test for Flutter projects. The skill explains coverage directives, which exclude specific lines, blocks or whole files from the coverage measurement, so that generated code or code that cannot be tested does not distort the figures. Its workflows cover configuring and generating coverage reports, and collecting coverage manually for more advanced cases, with examples. The skill is meant for teams that want to measure how much of their code is tested, and to produce a report that other tools can read. A skill is a SKILL.md file that an AI agent loads when a task calls for it. It is listed as free on skills.sh.…
Highlights
- Collects coverage and writes an LCOV report
- Guidance for unit, widget and integration tests
- Coverage directives to exclude code
- Works with package:test and flutter_test
Ratings & Reviews
No ratings yet
Be the first to rate dart-collect-coverage.
People also visit

pytest-coverage
Run pytest with coverage reporting to identify and eliminate untested code lines
dart-collect-coverage FAQ
What does the dart-collect-coverage skill do?
It helps an AI agent collect test coverage for a Dart or Flutter project and produce an LCOV report.
How do I install it?
Run: npx skills add https://github.com/dart-lang/skills --skill dart-collect-coverage
Is it free?
Yes. The skill is listed as free on skills.sh.
What is an LCOV report?
A coverage report format that the skill produces, so other tools can read the results.
Can I exclude some code from coverage?
Yes. The skill has coverage directives that exclude lines, blocks or whole files.
What are the best dart-collect-coverage alternatives?
Popular alternatives to dart-collect-coverage include test-coverage, pytest-coverage and dart-add-unit-test. See all dart-collect-coverage alternatives














