Why testing is great, but blocking your build on code coverage is not.

Recently at work guidelines were being developed for the department. Part of those guidelines were related to SonarQube quality gates that would be used inside of our CI/CD pipelines. I noticed during the discussion that even though everyone agrees that code coverage is not a direct measure of quality, it is still quite hard to argue that it therefore should not be part of the quality gate. I decided to write down my thoughts in a bit more of a structured way to see if I can convince my peers.

The limit of uncertainty

Dealing with uncertainty is a primary skill in Software engineering. Let’s talk about it!