Do you write unit tests to confirm bugfixes? (aka Red-Green-Refactor)

Updated by MatthewWicks 5 years ago. See history

When you encounter a bug in your application you should never let the same bug happen again. The best way to do this is to write a unit test for the bug, see the test fail, then fix the bug and watch the test pass. This is also known as Red-Green-Refactor.

Tip: you can then reply to the bug report with "Done + Added a unit test so it can't happen again"

See how to send a good 'Done' email.

Categories

Acknowledgements

Adam Cogan

Related rules

No related rules.

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star