duvet library

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


generateAndWriteIndex({String outputDir, List<FileCoverageReport> reports }) Future<void>
Generate the root HTML element that lists each tested file and coverage.
generateAndWriteReport({String sourceFilePath, List<LineReport> lineReports, String outputDir }) Future<FileCoverageReport>
Generate and write a coverage report for a single source file.
resolveTestPackageLocation() Future<String>
Get the absolute path to the test package.
runTests() Future<Map<String, List<LineReport>>>
Execute pub run test in the current directory, and collect coverage from the Dart VM.

Exceptions / Errors

Exception class for when test package isn't installed.