discover 0.3.2 copy "discover: ^0.3.2" to clipboard
discover: ^0.3.2 copied to clipboard

Discover your real coverage with Flutter including not tested Dart files.

discover #

style: very good analysis

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
copied to clipboard

Or locally via:

dart pub global activate --source=path <path to this package>
copied to clipboard

๐Ÿšจ 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 #

Perform coverage scan #

# Scan command
$ discover scan

# Scan command option
$ discover scan --path <dart_project_path>
copied to clipboard

Tooling commands #

# Show CLI version
$ discover --version

# Show usage help
$ discover --help
copied to clipboard

Ignore files #

You can ignore files by creating a .discoverignore file in the root of your project.

|-- android
|-- ios
|-- lib
|-- linux
|-- macos
|-- test
|-- windows
|-- .discoverignore
copied to clipboard

Sample .discoverignore file:

lib/**/*.g.dart
lib/**/*.freezed.dart
lib/view/**/*.dart
copied to clipboard

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
copied to clipboard

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
copied to clipboard

5
likes
150
points
452
downloads

Publisher

verified publishermobile-tools.dev

Weekly Downloads

2024.10.02 - 2025.04.16

Discover your real coverage with Flutter including not tested Dart files.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args, cli_completion, file, glob, mason_logger, pub_updater

More

Packages that depend on discover