Pub package to calculate coverage, format it to LCOV and send it to coveralls
Calculate coverage of your dart scripts, format it to LCOV and send it to coveralls.io.
This package consists of a single command line tool
the two commands
To activate the program for global use, run
pub global activate dart_coveralls.
This command calculates the coverage of a given package. Use the tool like this:
dart_coveralls 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: Where to find packages, that is, "package:..." imports. (defaults to "packages")
test.dart: The path of the test file on which coverage will be collected
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>
--help– Displays all options
--token–Token for coveralls
--workers– Number of workers for parsing (defaults to "1")
--package-rootWhere to find packages, that is, "package:..." imports. (defaults to "packages")
--debugPrints debug information
--retryNumber of retries (defaults to "10")
--dry-runIf this flag is enabled, data won't be sent to coveralls
-C, --throw-on-connectivity-errorShould this throw an exception, if the upload to coveralls fails?
-E, --throw-on-errorShould this throw if an error in the dart_coveralls implementation happens?
-T, --exclude-test-filesShould test files be included in the coveralls report?
-p, --print-jsonPretty-print the json that will be sent to coveralls.
Help and Pull Requests are highly appreciated :)