Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print not-covered files and lines numbers to the standard output #46

Closed
orestesgaolin opened this issue Aug 20, 2021 · 1 comment
Closed
Assignees

Comments

@orestesgaolin
Copy link

Is your feature request related to a problem? Please describe.

Sometimes while checking the coverage for 100% the resulting value may be something like 99% or 99.96% which may be obviously a single line missing or some strange quirk like const constructor.

Run VeryGoodOpenSource/[email protected]
  with:
    exclude: **/*.g.dart **/*.gen.dart **/l10n/*.dart **/l10n/**/*.dart **/main/bootstrap.dart
    path: coverage/lcov.info
    min_coverage: 100
  env:
    FLUTTER_ROOT: /opt/hostedtoolcache/flutter/2.4.0-4.2.pre-beta/x64
    PUB_CACHE: /opt/hostedtoolcache/flutter/2.4.0-4.2.pre-beta/x64/.pub-cache
Error: 99.27797833935018 is less than min_coverage 100

Describe the solution you'd like

It would be awesome to print the list of not covered lines as well:

Run VeryGoodOpenSource/[email protected]
  with:
    exclude: **/*.g.dart **/*.gen.dart **/l10n/*.dart **/l10n/**/*.dart **/main/bootstrap.dart
    path: coverage/lcov.info
    min_coverage: 100
  env:
    FLUTTER_ROOT: /opt/hostedtoolcache/flutter/2.4.0-4.2.pre-beta/x64
    PUB_CACHE: /opt/hostedtoolcache/flutter/2.4.0-4.2.pre-beta/x64/.pub-cache
Error: 99.27797833935018 is less than min_coverage 100
Not covered lines:
   lib/main.dart: 10
   lib/my_bloc.dart: 12

Describe alternatives you've considered

Additional context

@felangel
Copy link
Contributor

Closed by #47 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants