dev_dependencies:
flutter_coverage_badge:
git:
url: [email protected]:fernandomoraesvr/flutter_coverage_badge.git
ref: main
flutter pub get
flutter test --coverage
flutter pub run flutter_coverage_badge
![Coverage](https://raw.githubusercontent.com/{you}/{repo}/master/coverage_badge.svg?sanitize=true)
Default input path: coverage/lcov.info
flutter pub run flutter_coverage_badge -i 'coverage/new_lcov.info'
The coverage badge output path is always generated at .github/badges, but you can specify a different filename.
Default output filename: coverage_badge.svg
flutter pub run flutter_coverage_badge -o 'coverage.svg'