Best Practice Bugfixing
Fixing a bug is a day-to-day task for developers, so we just want to agree on a very short lists of things that should accompany a bugfix.
- No bugfix without a Bugzilla bug report or a GitHub issue.
We must capture our work and issue management systems are a great way to make the changes message for new releases easy to write and complete (and long!).
- No bugfix without a test.
TDD rocks, every developer knows that. Adding tests when fixing bugs is a great way to create useful tests if they were missed/not written yet because you don't have to write many tests in a row but only one at a time.
This should be enforced by code managers!
- Mark bug reports/issues as resolved with a reference to the commit that fixed it (easy as pie in GitHub).
See more best practices here: BestPractice