pcov 1.0.3 copy "pcov: ^1.0.3" to clipboard
pcov: ^1.0.3 copied to clipboard

The Pinch coverage CLI tool that makes your testing easier. Include untested files and exclude files through your own configuration.

example/README.md

Getting Started #

Install the latest Pcov version as a global package via Pub.

dart pub global activate pcov

# Or specify a specific version if needed:
# pub global activate pcov 1.0.0

Running tests #

Running tests with Pcov can be done by suppyling your command to pcov using the --test-command option:

pcov --test-command="flutter test --coverage"

Excluding files #

Excluding files while running tests with pcov can be done by adding a pcov.yml file to the root of your project. You can then exclude files by:

  • File name
  • File content

You can use * as wildcards just like you would normally do in your .gitignore file for example.

exclude:
  file_name:
    - '*.g.dart'
    - '*.freezed.dart'
    
  content:
    - 'class * extends StatelessWidget *'
    - 'class * extends StatefulWidget *'

5
likes
140
pub points
14%
popularity

Publisher

verified publisherpinch.nl

The Pinch coverage CLI tool that makes your testing easier. Include untested files and exclude files through your own configuration.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

args, collection, yaml

More

Packages that depend on pcov