GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - defuncart/dart_code_coverage: A package with helpers for generating and editing code coverage reports in dart.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bin
bin
 
 
example
example
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.metadata
.metadata
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
analysis_options.yaml
analysis_options.yaml
 
 
pubspec.yaml
pubspec.yaml
 
 

Repository files navigation

dart_code_coverage

A package with helpers for generating and editing code coverage reports in dart.

Inspired by remove_from_coverage and dart_coverage_helper.

Getting Started

generate_dart_file

Generates a dart file of all project files which should be covered by unit tests.

option abbreviation info
output -o A path to save output file. Defaults to test/coverage_report_test.dart.
remove -r A regexp pattern of paths to exclude. Optional.
help -h Displays help.
flutter pub run dart_code_coverage:generate_dart_file -r ".*\.g\.dart","localizations.dart"

edit_lcov

Removes files with given patterns from lcov.info

option abbreviation info
file -f The lcov.info file to edit. Defaults to coverage/lcov.info.
remove -r A regexp pattern of paths to exclude. Must be given.
help -h Displays help.
flutter pub run dart_code_coverage:edit_lcov -r ".*\.g\.dart","localizations.dart"

Example

# generate dart file of all files to be covered by unit tests
flutter pub run dart_code_coverage:generate_dart_file -r ".*\.g\.dart","localizations.dart"

# generate lcov
flutter test --coverage

# edit lcov
flutter pub run dart_code_coverage:edit_lcov -r ".*\.g\.dart","localizations.dart"

# generate report
genhtml coverage/lcov.info -o coverage/html

About

A package with helpers for generating and editing code coverage reports in dart.

Topics

code-coveragedartflutterlcovlcov-report

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.