Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on My Favourite Git Commit. Parent comment
* It ensure that the bug is real. [1]
* It ensures that the bug is fixed. [1]
* It prevents reversions (assuming the test are run automatically).
* The test may prevent reversions in other related code, or discover other hidden bugs.
* It brings you closer to a 100% test coverage.
* You don't have to guess how to reproduce the bug, reading the comment.
* If the bug depends on subtle configurations, they should be set in the test. [2]
From time to time there are bugs that are obvious in the code, but they are too difficult to find a test for them.
[1] Been there, done that.
[2] Once I found a bug that depended on the local timezone.
* It ensure that the bug is real. [1]
* It ensures that the bug is fixed. [1]
* It prevents reversions (assuming the test are run automatically).
* The test may prevent reversions in other related code, or discover other hidden bugs.
* It brings you closer to a 100% test coverage.
* You don't have to guess how to reproduce the bug, reading the comment.
* If the bug depends on subtle configurations, they should be set in the test. [2]
From time to time there are bugs that are obvious in the code, but they are too difficult to find a test for them.
[1] Been there, done that.
[2] Once I found a bug that depended on the local timezone.