A few things have stuck with me from my time at GitHub. I learned a lot from a lot of smart people there, but for today I just want to chat about three quotes.
We can make good tests run fast but we can’t make fast tests be good.
— Ryan Tomayko, GitHub’s internal testing docs
This line jumped out at me when I first read it, and I’ve thought back on it a lot since.
Tests are funny things. It feels like writing normal application code, but it’s not. Not really. A lot of the time I’ll catch myself refactoring test setups, making weird optimizations, sometimes even metaprogramming dynamic tests… but at the end of the day it usually doesn’t matter. What matters is having explicit tests that make it easy for you to understand both 1) what is failing, and 2) how you can fix it quickly.
... read the whole story at zachholman.com.