GithubHelp home page GithubHelp logo

ekweible / dart-coveralls Goto Github PK

View Code? Open in Web Editor NEW

This project forked from block-forest/dart-coveralls

0.0 2.0 0.0 183 KB

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

License: MIT License

Dart 100.00%

dart-coveralls's Introduction

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 two commands calc, report.

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 [--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_coveralls 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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.