Plugin that allows to count project code coverage
$ gem 'danger-flutter-coverage', git: 'https://github.com/netguru/danger-flutter-coverage'
For code coverage:
require 'flutter_coverage/plugin'
# Show path to code coverage file generated with `flutter test --coverage`
flutter_coverage.coverage_report_path = "./coverage/lcov.info"
# Print the code coverage message
flutter_coverage.code_coverage_message
- Clone this repo
- Run
bundle install
to setup dependencies. - Run
bundle exec rake spec
to run the tests. - Use
bundle exec guard
to automatically have tests run as you make changes. - Make your changes.