-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(codecov): exclude lines #2101
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2101 +/- ##
==========================================
+ Coverage 89.23% 89.74% +0.51%
==========================================
Files 208 208
Lines 11048 11034 -14
==========================================
+ Hits 9859 9903 +44
+ Misses 1189 1131 -58
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -0,0 +1,5 @@ | |||
# .coveragerc to control coverage.py |
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.
is this supposed to affect the coverage locally or the coverage in codecov. If it is locally, u should try to create 2 reports with and without this file and see if there is difference
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.
Should be " coverage in codecov".
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.
But this may not be the correct way to configure
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.
related issue: codecov/codecov-python#107
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
@Yongxuanzhang i think it's better to be placed in |
|
I think in general, it is needed to exclude lines.
|
@florian-hoenicke I personally think it makes no sense to unit test abstract methods, since the "real logic" will be implemented in subclasses. |
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.
LGTM, let's see how other colleagues think about it.
Sure! I will leave it to receive more comments. |
To me is good. If u find is better to keep codecov.yml in the root of the project feel free to open a PR |
This ticket aims at removing the
codecov
detection on some specific lines, (e.g. NotImplementedError). For this error in the base class, we don't have to write tests to cover it. Exclude them will also increase the test coverage.File introduced: .coveragerc