dart_coveralls 0.1.10 copy "dart_coveralls: ^0.1.10" to clipboard
dart_coveralls: ^0.1.10 copied to clipboard

outdatedDart 1 only

Pub package to calculate coverage, format it to LCOV and send it to coveralls

dart-coveralls #

Coverage Status

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

Usage #

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

The calc command

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

dart dart_coveralls.dart calc [--workers, --output, --package-root] test.dart
  • --workers: The number of workers used to parse LCOV information
  • --output: The output file path, if not given stdout
  • --package-root: The root of the analyzed package, default .
  • test.dart: The path of the test file on which coverage will be collected

The report command

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

dart dart_coveralls.dart report [--workers, --token, --package-root, --debug, --retry] test.dart
  • --workers: The number of workers used to parse LCOV information
  • --token: The token for coveralls.io. The token can also be set as an environment variable called REPO_TOKEN.
  • --package-root: The root of the analyzed package, default .
  • --debug: Prints additional debug information
  • --retry: The number of retries to submit data to coveralls
  • --dry-run: Choose this if the collected data shouldn't be submitted to coveralls.
  • --throw-on-connectivity-error: Should this throw if there is a connectivity error with coveralls?
  • --throw-on-error: Should this throw if there is an error in the dart coveralls library?
  • --exclude-test-files: Should test files be excluded for the coveralls report?
  • test.dart: The path of the test file on which coverage will be collected

Contributing #

Help and Pull Requests are highly appreciated :)

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Pub package to calculate coverage, format it to LCOV and send it to coveralls

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

args, coverage, http, logging, mockable_filesystem, path, yaml

More

Packages that depend on dart_coveralls