DEV Community

loading...

Discussion on: Stop Testing My Code!

Collapse
dotnetkow profile image
Matt Netkow

Excellent post, Michael. I used to be on the 100% code coverage bandwagon, until two realizations:

  • Beware testing others' code (aka your points made here)
  • Time. Regardless of team size, it's limited and given the realities of deadlines and business goals it's near impossible to reach. that's ok though. Instead of covering every last line of code, focus instead on maybe 70 to 80%: testing the core features. Then, focus on delivering new value, whether new features, fixing bugs, etc. If you encounter an issue/bug that wasn't covered previously, that's fine - write a test and move on. From experience, I've found this to work well.