Ask HN: When to stop testing?

I realize the answer is "when expected benefits are less than expected costs", but am interested to hear how people estimate these two things.

I started off thinking I'd aim for 100% coverage, but have realized that after a certain point (~80%) I wasn't finding any more bugs in the code I'd written. New bugs instead came from code I hadn't written (e.g., cases I hadn't considered).

This post does not have any comments yet