Re:Serverless: A lesson learned the hard way
by codedokode on Thursday August 10, 2017 @04:45PM
(#14984057)
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.
Re:Serverless: A lesson learned the hard way
by Piskvorrr on Thursday August 10, 2017 @05:06PM
(#14984281)
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.
And even 100% code coverage doesn't find all possible errors.