Git Product home page Git Product logo

dart-1's Introduction

Dart Code Coverage Generator

Build Status codecov.io FOSSA Status

Generate code coverage for Dart projects. Output can be lcov format or an HTML report.

This project includes a codecov executable that runs one or many test files and uses the coverage package to collect coverage for each file and format the coverage into the desired output format.

Prerequisites

Depends on the following utilities:

  • genhtml (brew install lcov on a mac)
  • lsof (standard unix utility)

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  coverage: "^0.7.0"
  codecov: "^0.4.0"

Install:

pub get --packages-dir

Usage

pub run codecov

Configuration

By default, this tool runs every test file in the test/ directory. You can explicitly specify the directories or files like so:

pub run codecov test/my_test.dart

Options

  • --report-on: Which directories or files to report coverage on. For example, --report-on=lib/.

Flags

  • --html: Whether or not to generate the HTML report. Defaults to true.
  • --lcov: Whether or not to generate the .lcov file. Defaults to true.
  • --verbose: Toggle verbose output to stdout.

Notice

The tooling currently relies on the deprecated packages directories generated by pub. If the .packages file should be used instead, modify the call to pub run coverage:format_coverage in bin/src/coverage.dart, replacing --package-root=packages with --packages=.packages.

License

FOSSA Status

dart-1's People

Contributors

davidgianforte-wf avatar drazisil avatar ekweible avatar fossabot avatar johnpryan avatar johnryan-wf avatar theinze avatar thomasrockhu avatar

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.