Hacker News new | ask | show | jobs
by lmm 1837 days ago
The solution is don't measure test coverage. Measure something you actually care about, like minutes of downtime.
1 comments

Every time a bug is found I ask my team to write a unit test for it to prevent regression for that bug.

During peer review I encourage Engineers to verify that the actual business logic has been tested, for example calculations.

If done correctly, a low unit test coverage can actually be of more quality than enforcing an 80% threshold