Hacker News new | ask | show | jobs
by boberoni 1014 days ago
This blog post should be turned into a GitHub issue template.
1 comments

The one thing I would add is, if at all possible, write a unit test that fails, reproducing the bug. I have found when working on a code base that is only lightly unit tested, it’s one of the best ways to increase coverage.
100%. In general, if you're submitting a PR for a bug fix then an automated test (ideally a unit test) should be included in the PR that tests the bug fix.