by vitus · 1y ago · 0 comments
Not just regressions, but bugs in general.
If you can reproduce your bug in a test, then verify that your fix causes your test to pass, that's a great way to build confidence before trying out your code in production.
And in fact, this is mentioned in the article as part of maintenance:
> Writing a test first to prove out a bug before you fix it is pretty neat.