It’s good to read someone thinking about this instead of the nonsense I’ve been reading, e.g. unit tests are so important that it’s okay to cut corners on the real code, anything under 100% code coverage is irresponsible, or, the craziest, we don’t need documents anymore, the tests are the design.

I believe in regression testing, but unit testing only public entrypoints. I don’t do them either, for the reasons you mentioned. I don’t think any developer should be the primary tester of his own code.

I’ve written two articles here on TDD, I invite you to read them, a lot of the same issues.

Written by

American Software Developer living in Vietnam. Classical musician (guitar, woodwinds), weightlifter, multilingual, misanthrope • XY

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store