4 ms·
The article title is going to get people to summary judge without reading. The actual article is a nice exploration of prioritizing unit tests based on context
by geoelectric 7y ago
The article title is going to get people to summary judge without reading.
The actual article is a nice exploration of prioritizing unit tests based on context-driven testing principles: the decision-making around how to concentrate tests on your codebase in areas that need it, while not getting hung up on dogmatically creating them for areas that are already stable enough.
- badlucklottery 7y agoYeah, the title is 100% goofy. It's almost anti-clickbait because some people will (rightfully) dismiss it out of hand. That being said, if you turn on strict everything in typescript and use type guards instead of just casting/asserting around type ambiguity, you avoid that entire class of incorrect typing errors (at the cost of having to really learn the TS type system). This doesn't reduce your testing load to zero (or even near it) but IME it takes a big chunk out and reduces your "dumb bug" count significantly.