duvet 0.0.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 46

Duvet #

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

Duvet coverage report screenshot

Installation #

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

dev_dependencies:
  duvet: ^1.0.0

You can also install duvet globally with the following:

$ pub global activate duvet

Usage #

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.

0.0.1 #

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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


dependencies:
  duvet: ^0.0.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub 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
Popularity:
Describes how popular the package is relative to other packages. [more]
1
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

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

  • Dart: 2.3.0
  • pana: 0.12.15

Platforms

Detected platforms: Flutter, other

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

Health suggestions

Fix lib/src/executable.dart. (-0.50 points)

Analysis of lib/src/executable.dart reported 1 hint:

line 69 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and duvet.dart. Packages with multiple examples should provide example/README.md.

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.

Dependencies

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.20.1
shelf ^0.7.4 0.7.5
shelf_static ^0.2.8 0.2.8
Transitive dependencies
async 2.2.0
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+2
http_parser 3.1.3
js 0.6.1+1
json_rpc_2 2.1.0
logging 0.11.3+2
matcher 0.12.5
mime 0.9.6+2
package_config 1.0.5
package_resolver 1.0.10
pedantic 1.6.0
pub_semver 1.4.2
quiver 2.0.3
source_maps 0.10.8
source_span 1.5.5
stack_trace 1.9.3
stream_channel 2.0.0
stream_transform 0.0.19
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+2
watcher 0.9.7+10
web_socket_channel 1.0.12
Dev dependencies
test ^1.0.0