Go to content

RubyConf 2021 - Fake Your Test Away: How To Abuse Your Test Doubles by Jenny Shih

Fake Your Test Away: How To Abuse Your Test Doubles by Jenny Shih You probably already know: In a unit test, use test doubles to sub real dependencies. You probably also know: In reality, things are not so easy. What do you do if the dependencies span multiple layers? What if the dependencies are implicit? If we can't find the best level of isolation, test doubles can be unwieldy very quickly and they will make the test, as well as the future you, miserable. In this talk, we will look at symptoms that produce unreliable and unmaintainable tests, and develop a strategy that will make your test suite more resilient and actually enjoyable.

November 8, 2021