How to Write Tests That Catch Bugs, Not Just Coverage
A test suite can hit 100 percent coverage and still miss the bug that takes your app down on a Friday night. Coverage counts which lines ran. It says nothing about whether any test checked the right thing. To write tests that catch bugs, you have to test behavior, not lines: feed the code realistic … Read more