Y
Hacker News
new
|
ask
|
show
|
jobs
by
aianus
3046 days ago
> How many tests does a PR need? One? Five?
Enough so the overall coverage doesn't go down.
1 comments
ghayes
3046 days ago
Be careful that coverage is a proxy metric to good tests. Striving for high coverage can mislead you on the quality of your tests.
link
rootusrootus
3046 days ago
On the flip side, encouraging good coverage usually ends up uncovering some bugs that might otherwise have gone unnoticed until they bit someone.
link
Mikushi
3045 days ago
On the other flip side it encourages writing test that have zero business value.
link
aianus
3046 days ago
High coverage is necessary but not sufficient, sure. I don't think you can have a good test suite with low coverage (< 80%).
link