Duvet generates nice-looking coverage reports for your Dart projects.
Add Duvet to your project by adding the following to your
dev_dependencies: duvet: ^1.0.0
You can also install
duvet globally with the following:
$ pub global activate duvet
Once added to a project, you can generate a coverage report by running:
$ pub run duvet:duvet_cover
If you installed
duvet globally, you can generate a report by running:
duvet will then run your tests and collect coverage, outputting the report to a
coverage directory. You can also pass the
--serve option to automatically start a webserver to access the coverage reports.
You can view a sample coverage report for the
dart_style package here.
duvet works by running the
test package against your project, and then using the
coverage package to collect coverage information. It then assembles reports using
hyper, and serves the reports using
Add this to your package's pubspec.yaml file:
dependencies: duvet: ^0.0.1
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.0.2||Dec 28, 2018|
|0.0.1||Dec 27, 2018|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, other
lib/src/executable.dart. (-0.50 points)
lib/src/executable.dart reported 1 hint:
line 69 col 5:
Future results in
async function bodies must be
awaited or marked
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
duvet.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.
|Dart SDK||>=2.1.0 <3.0.0|