You want tests that either help you find bugs or help you document behavior. You do not want tests that, for example, increase code coverage. If a test does not have a good reason to exist, it should not exist. Remember that you must maintain all your tests. The perfect test suite is one that can detect all the bugs with the minimum number of tests. While having such a perfect test suite is impossible, making sure you do not have useless tests is a good start.
Leave a Reply