Hacker News new | ask | show | jobs
by codedokode 3235 days ago
It is impractical to cover every line of code with tests (it would get too expensive). Futhermore, in this case the author would have to test production config interacting with Amazon servers rather than a piece of code.

And even 100% code coverage doesn't find all possible errors.

1 comments

Do you need to cover every _line_ of code, or do you need to test resulting behavior? Also, while nothing is 100% foolproof, the example here would probably have been caught.
I doubt this, a unit test wouldn't have covered the infinite triggering of the created events