Code Coverage with Pytest: Ensuring Quality Testing in Your Python Projects
Published in
5 min readApr 18, 2024
Code coverage is useful because it tells us if we test enough. In big projects, we can easily find out if we forget to test some part of the code. With code coverage, it’s easy.
We shouldn’t set specific limits on how much percent of code should be covered, because it often leads to situations when developers write tests just to meet the goal.
Of course, if we have just a few tests, we probably won’t catch all the possible bugs. It can be seen as a good negative indicator, but…