Covadge
A flutter package to generate coverage badges and adding them to your project.
Usage
To use this plugin, add covadge
as a dependency in your pubspec.yaml file.
Run test with coverage
flutter test --coverage
Generate the badge
flutter pub run covadge {LCOV_INFO_PATH} {OUTPUT_DIRECTORY}
LCOV_INFO_PATH
defaults to coverage/lcov.info
.
OUTPUT_DIRECTORY
defaults to ./
assuming you're on your root.
Add your badge to the README.md
![Coverage](./coverage_badge.svg)
All possible generated badges colors options
To do
We're working on making Covadge
a Github Action, to avoid dependencies in your project.