block-forest / dart-coveralls

Calculate coverage of your dart scripts, format it to LCOV and send it to coveralls
https://pub.dartlang.org/packages/dart_coveralls
MIT License
27 stars 17 forks source link

dart-coveralls

Build Status Coverage Status Pub

Calculate coverage of your dart scripts, format it to LCOV and send it to coveralls.io.

NOTE: as of version 0.6.0 dart-coveralls, requires a Dart 2 SDK.

Usage

This package consists of a single command line tool dart_coveralls with the three commands calc, report, upload.

To activate the program for global use, run pub global activate dart_coveralls.

The calc command

This command calculates the coverage of a given package. Use the tool like this:

dart_coveralls calc [--output, --package-root] test.dart
# or
dart_coveralls calc [--output, --packages] test.dart

The report command

This command calculates and then sends the coverage data to coveralls.io. Usage of the tool is as follows:

dart_coveralls report <options> <test file>

The upload command

This command uploads a coverage report.

dart_coveralls upload <options> <directory containing coverage reports from the VM>

Contributing

Help and Pull Requests are highly appreciated :)