Skip to main content

devimobile_devkit_cli 0.1.0 copy "devimobile_devkit_cli: ^0.1.0" to clipboard
devimobile_devkit_cli: ^0.1.0 copied to clipboard

Runs the tests of every package in a Dart or Flutter pub workspace with one summary, and merges lcov coverage with excludes and thresholds.

example/README.md

Example #

A pub workspace with an app and two packages:

# pubspec.yaml (workspace root)
name: my_workspace
publish_to: none

environment:
  sdk: ^3.13.0

workspace:
  - apps/mobile
  - packages/*

dev_dependencies:
  devimobile_devkit_cli: ^0.1.0

devkit:
  coverage:
    exclude:
      - '**/*.g.dart'
      - '**/*.freezed.dart'
    min: 80
# packages/design_system/pubspec.yaml
devkit:
  coverage:
    min: 95

Run every package's tests with coverage, then merge and check thresholds:

dart pub get
dart run devimobile_devkit_cli:devkit test --coverage
dart run devimobile_devkit_cli:devkit coverage

Pass arguments to the test runner after --, for example to run only tests whose name contains "login":

dart run devimobile_devkit_cli:devkit test -- --name login

In GitHub Actions:

- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
  with:
    flutter-version-file: .fvmrc
- run: dart pub get
- run: dart run devimobile_devkit_cli:devkit test --coverage
- run: dart run devimobile_devkit_cli:devkit coverage
0
likes
160
points
43
downloads

Documentation

API reference

Publisher

verified publisherdevimobile.pl

Weekly Downloads

Runs the tests of every package in a Dart or Flutter pub workspace with one summary, and merges lcov coverage with excludes and thresholds.

Repository (GitHub)
View/report issues

Topics

#testing #coverage #workspace #cli #flutter

License

MIT (license)

Dependencies

args, glob, path, yaml

More

Packages that depend on devimobile_devkit_cli