Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
aianus
on Feb 14, 2018
|
parent
|
context
|
favorite
| on:
What I wish I knew when I became CTO
> How many tests does a PR need? One? Five?
Enough so the overall coverage doesn't go down.
ghayes
on Feb 14, 2018
[–]
Be careful that coverage is a proxy metric to good tests. Striving for high coverage can mislead you on the quality of your tests.
rootusrootus
on Feb 14, 2018
|
parent
|
next
[–]
On the flip side, encouraging good coverage usually ends up uncovering some bugs that might otherwise have gone unnoticed until they bit someone.
Mikushi
on Feb 15, 2018
|
root
|
parent
|
next
[–]
On the other flip side it encourages writing test that have zero business value.
aianus
on Feb 14, 2018
|
parent
|
prev
[–]
High coverage is necessary but not sufficient, sure. I don't think you can have a good test suite with low coverage (< 80%).
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Enough so the overall coverage doesn't go down.