News for hackers. Stuff that matters.
Re:Why Most Unit Testing is Waste (2014) [pdf] by LnxPrgr3 on Monday May 30, 2016 @02:28PM (#11802441)
I don't ever unconditionally trust code, but my faith rises:

* a little, if it passes a decent unit and/or integration test suite;

* a fair bit more, if it survives a round with humans who didn't write it but did set out to break it;

* quite a bit more, once it's been in production for a while without complaints tracing back to it;

* gradually approaching, but never reaching, perfect trust the longer it survives exposure to the world.

A lot of bugs will make it past step 1--even through tests with 100% code coverage. Hopefully no one takes them as anything near proof of correctness.

There are no comments on this comment yet.