Justin Stroud
Sep 5, 2018 · 1 min read

This is by far the best article I’ve read as to the over-complexity of unit tests.

IMHO, unit tests are isolated comparisons of behaviour. Like, does my two-by-four lego brick fit the schematics? Can I make the test fail? If you include other bricks, that’s an integration test. If you have a six year old play with the integrated parts…then MAYBE you need some sort of Turing tape.

Or you could just observe the way the six year old interacts with what you’ve built, and forget your preconceived notions about how they “should” versus how the “do.”