Is it slow to test?
by Chance Smith
I’ve heard this argument before, “It’s slow to test. I can just fix and ship it.”
I agree until we see clients finding bugs or our team finding regressions. This is when a test could help prevent some bugs we should have caught. Also, adding one more test to a test suite is so easy.
So, compare these two scenarios:
- get task
- write failing tests
- pass failing tests…forever
…or…
- get task
- add the feature
- fix a bug
- refix something that was working…done…ship
- customer finds bug
- customer emails team
- team tries to replicate the bug
- team assigns to dev
- dev finds bug…
- dev fixes bug
- bug shows up again after a bad edit or merge
I want to feel this pain if I see it creeping into my work.
I have to remind myself, too, that it’s easy to test where you already have tests.
Let’s say a bug appears in an area you’ve already tested. You add a new test to cover it. Easier to edit than create. Boom.