Have you ever written a test that could never fail, no matter what you changed in your own code?
In the latest episode of the No Compromises podcast, Aaron and I dig into a question that changed how we think about our test suites. We share a simple litmus test. If you cannot make a test fail by changing something in your application code, it probably should not be in your test suite.
We walk through specific examples, including validation rules, and explain how different test types shape the way you think about what is worth testing.
- 00:00 Are we testing code or framework
- 02:00 Joel's metric for framework-only tests
- 05:15 Bottom-up testing perspective by test type
- 07:36 Why validation rules still deserve tests
- 10:40 Silly bit
And after listening, don't forget to subscribe to the podcast, so you don't miss future episodes.
Here to help,
Joel
P.S. Want to get even better at writing tests that actually matter? Check out our testing workshop.