What's so great about unit tests?
- at 30% coverage most bugs are found
- at 80% coverage most edge cases are found
- at 90% - 100% coverage you've been motivated to remove dead code and lesser used features.
- at 100% - tests might as well be an assertion that the source code hasn't change, any change in source code will break a test.
At ~1000s of tests the maintenance costs of unit tests starts to exceed value of test
Post
April 29, 2024