Writing Resilient Unit Tests With Ease
I see too many people writing brittle and bloated unit tests. Often it is experienced developers with years of coding. Ultimately, they never used unit tests extensively. Consequently, they lack understanding of writing resilient and easy-to-support unit tests. You might not think of yourself as one of these guys, but let me show three simple technics that will immediately improve your unit test quality. TL;DR Test in isolation — do not rely on the behavior of dependencies but mock them instead....