covadge 0.0.1
covadge: ^0.0.1 copied to clipboard
A flutter package to generate coverage badges and adding them to your project.
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 #

All possible generated badges colors options #
[0%] [5%] [10%]
[15%] [20%] [25%]
[30%] [35%] [40%]
[45%] [50%] [55%]
[60%] [65%] [70%]
[75%] [80%] [85%]
[90%] [95%] [1000%]
To do #
We're working on making Covadge
a Github Action, to avoid dependencies in your project.