-
Notifications
You must be signed in to change notification settings - Fork 72
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
ci: add the check-ignore flag in dart coverage #107
ci: add the check-ignore flag in dart coverage #107
Conversation
.github/workflows/dart_package.yml
Outdated
@@ -77,7 +77,7 @@ jobs: | |||
- name: 🧪 Run Tests | |||
run: | | |||
dart pub global activate coverage 1.2.0 | |||
dart test -j ${{inputs.concurrency}} --coverage=coverage --platform=${{inputs.platform}} && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=${{inputs.report_on}} | |||
dart test -j ${{inputs.concurrency}} --coverage=coverage --platform=${{inputs.platform}} && dart pub global run coverage:format_coverage --lcov --check-ignore --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=${{inputs.report_on}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add this under an option as this could be considered breaking for anyone using this in the next version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I added a new input for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wolfenrain I think we should go forward with the breaking change.
I think it is more sensible to have it enabled by default. Since if you are using comments to ignore particular sections of the code you're most likely doing it purposely already.
This might be related to VeryGoodOpenSource/very_good_coverage#200. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the parameter type should be boolean and true by default.
06c62b8
to
0e51426
Compare
0e51426
to
ca1cd36
Compare
f9eec16
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
Description
Add the flag
--check-ignore
in Dart Coverage for comments below to work:Type of Change