discover 0.2.0
discover: ^0.2.0 copied to clipboard
Discover your real coverage with Flutter.
discover #
Generated by the Very Good CLI ๐ค
An uncovered sources discovery CLI created by Very Good CLI.
Find every source not covered by tests in your Flutter project.
Getting Started ๐ #
If the CLI application is available on pub, activate globally via:
dart pub global activate discover
Or locally via:
dart pub global activate --source=path <path to this package>
๐จ Note ๐จ
An issue prevents from updating the CLI using local path.
If you want to update the CLI, you need to remove
.dart_tool
directory before running the command again. See issue 4295
Usage #
# Scan command
$ discover scan
# Scan command option
$ discover scan --path <dart_project_path>
# Show CLI version
$ discover --version
# Show usage help
$ discover --help
Running Tests with coverage ๐งช #
To run all unit tests use the following command:
$ dart pub global activate coverage 1.2.0
$ dart test --coverage=coverage
$ dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info
To view the generated coverage report you can use lcov .
# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/
# Open Coverage Report
$ open coverage/index.html