Replies: 2 comments 11 replies
-
I would argue that if we can do it easily, we should try to cover the testing code as well. However, I do not have strong feelings about this, so both options are fine for me. After all, we only "publish" the non-testing code. |
Beta Was this translation helpful? Give feedback.
11 replies
-
I am happy either way. I would vote to keep covering the tests until the project scales...e.g. v2.0... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a recent PR the question came up whether we want to include the testing code in the code coverage.
I am not sure what makes more sense here. From a conceptual perspective, I feel that the code coverage should only contain parts of the library and I don't consider the tests part of that. However, this has the advantage of knowing which tests are actually executed, which can be very insightful as well.
Notice how this influences the code coverage as well. Writing testing code (that obviously gets executed) will always improve coverage, so the exact number is always higher in this case and there is a bias to write a lot of tests (maybe very dumb ones) to increase the code coverage.
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions