-
-
Notifications
You must be signed in to change notification settings - Fork 26
feat: configurable regexp for coverage-ignore #212
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
feat: configurable regexp for coverage-ignore #212
Conversation
…comment must follow any // coverage-ignore.
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.
-
feature should be tested with unit tests on all levels
- `pkg/testcoverage/config_test.go``
TestConfigYamlParse
pkg/testcoverage/coverage/cover_test.go
- new test that will check this functionality with different values used (similar to test
Test_findAnnotations
but in this test second argument ofFindAnnotations
must be used with different values)
- new test that will check this functionality with different values used (similar to test
pkg/testcoverage/check_test.go
- a case in
func TestCheck(t *testing.T)
where non default value ofIgnoreTextRegex
is used
- a case in
- `pkg/testcoverage/config_test.go``
-
IgnoreTextRegex
does not seem suitable name why notCoverageIgnoreRegex
?
…with-coverage-ignore
…ge-ignore' of https://github.com/tino-alfaneti/go-test-coverage into vladopajic#173-enforce-explanatory-comments-with-coverage-ignore
…the config and .yaml
currently this pr just changes annotation from on the second toughs; i don't really think anyone needs to change annotations from i am closing this pr because configurable regexp for coverage-ignore is not really desirable as per above. |
I see what you mean. Let me look into it again and find a better solution. Thank you |
@tino-alfaneti thanks for understand and sorry for lost effort. if you want to work on feature that enforces comments here are hits in direction:
|
No worries at all @vladopajic , I believe that no effort is wasted, as every experience is an opportunity for learning and growth. I truly appreciate the hints and guidance you've provided. |
Enforce Explanatory Comments with // coverage-ignore. When a user adds a // coverage-ignore annotation, the tool should enforce that an additional explanatory comment is provided.