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 installto setup dependencies.
- Run bundle exec rake specto run the tests.
- Use bundle exec guardto automatically have tests run as you make changes.
- Make your changes.