duvet 0.0.2

  • README.md
  • Installing
  • Versions
  • new54


Duvet generates nice-looking coverage reports for your Dart projects.

Duvet coverage report screenshot


Add Duvet to your project by adding the following to your pubspec.yaml:

  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_cover

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.

Example Report

You can view a sample coverage report for the dart_style package here.

How it works

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 shelf.


  • Add executable to pubspec.yaml


  • Initial version, created by Stagehand

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate duvet

2. Use it

The package has the following executables:

$ duvet_cover

Use this package as a library

1. Depend on it

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

  duvet: ^0.0.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:duvet/duvet.dart';
Version Uploaded Documentation Archive
0.0.2 Dec 28, 2018 Go to the documentation of duvet 0.0.2 Download duvet 0.0.2 archive
0.0.1 Dec 27, 2018 Go to the documentation of duvet 0.0.1 Download duvet 0.0.1 archive
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]
Learn more about scoring.

We analyzed this package on Jan 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.10


Detected platforms: Flutter, other

Primary library: package:duvet/duvet.dart with components: io, isolate.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use duvet.dart.

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
args ^1.5.1 1.5.1
coverage ^0.12.3 0.12.4
hyper ^1.0.1 1.1.0
meta ^1.1.6 1.1.7
path ^1.6.2 1.6.2
sass ^1.15.2 1.16.0
shelf ^0.7.4 0.7.4
shelf_static ^0.2.8 0.2.8
Transitive dependencies
async 2.0.8
charcode 1.1.2
cli_repl 0.2.0+1
collection 1.14.11
convert 2.1.1
crypto 2.0.6
http 0.12.0+1
http_parser 3.1.3
js 0.6.1+1
json_rpc_2 2.0.9
logging 0.11.3+2
matcher 0.12.4
mime 0.9.6+2
package_config 1.0.5
package_resolver 1.0.6
pub_semver 1.4.2
quiver 2.0.1
source_maps 0.10.8
source_span 1.5.1
stack_trace 1.9.3
stream_channel 1.6.8
stream_transform 0.0.14+1
string_scanner 1.0.4
term_glyph 1.1.0
tuple 1.0.2
typed_data 1.1.6
vm_service_client 0.2.6
watcher 0.9.7+10
web_socket_channel 1.0.9
Dev dependencies
test ^1.0.0