by Erik Wright
Every line should have test coverage, but when projects get sophisticated tests can grow out of control, difficult to write, harder to understand, and damn near impossible to maintain. Learn tricks to achieve high coverage rates with simple, elegant tests that are easy to write, review, and evolve.
The talk will present some of the pitfalls of unit testing, from bloated shared fixtures to monkey patching, characterisation testing, and brittle/broken coverage for error handling.
If you suffer from these problems, unit-testing becomes a grind, certain code seems un-testable, and covered code becomes painful to evolve. You may even find that your tests aren't even covering what you think they are.
With examples from Shopify's data platform, I will show strategies to mitigate these problems and write tests that are crystal clear, robust, and sustainable."
About the Author