Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 1.12 KB

README.md

File metadata and controls

61 lines (38 loc) · 1.12 KB

flutter_coverage_badge

Flutter Coverage Badge Coverage

Getting Started

Install

dev_dependencies:
  flutter_coverage_badge:
    git:
      url: [email protected]:fernandomoraesvr/flutter_coverage_badge.git
      ref: main
flutter pub get

Run Test with Coverage

flutter test --coverage

Generate badge image

flutter pub run flutter_coverage_badge

Coverage

![Coverage](https://raw.githubusercontent.com/{you}/{repo}/master/coverage_badge.svg?sanitize=true)

Specify input path

Default input path: coverage/lcov.info

flutter pub run flutter_coverage_badge -i 'coverage/new_lcov.info'

Specify output filename

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'