DEV Community

Discussion on: "I need to change this code, but it has no test"

Collapse
 
tbeijen profile image
Tibo Beijen • Edited
"To me, good test coverage comes as a side-effect of a good testing strategy (TDD). It's not a target."

"I like it because it expresses the intention better"

Liking these parts. :) Nice write-up!

I'm hearing things about mutation testing being the 'better' quality metric for a test suite (compared to coverage which indeed proves very little).

Not sure (yet) how to do that in CI, but this article gives some inspiration on how to use it while writing tests. Interesting topic.