code_coverage 1.4.0 copy "code_coverage: ^1.4.0" to clipboard
code_coverage: ^1.4.0 copied to clipboard

A CLI tool and package useful for reporting code coverage of a given dart package

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate code_coverage

Use it

The package has the following executables:

$ code_coverage

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add code_coverage

With Flutter:

 $ flutter pub add code_coverage

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  code_coverage: ^1.4.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:code_coverage/code_coverage.dart';
6
likes
105
pub points
54%
popularity

Publisher

verified publishergustavohill.dev

A CLI tool and package useful for reporting code coverage of a given dart package

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

ansicolor, args, coverage, path, process_run, yaml

More

Packages that depend on code_coverage