Testing beyond Coverage

https://increment.com/reliability/testing-beyond-coverage/

While tests can’t detect bugs in unexecuted code, they can also miss bugs in code they do cover. For example, the following image highlights 925 test cases in the test suite of Apache’s Commons Collections, which all cover part of a method called ensureCapacity. Yet not a single test fails when the ensureCapacity body is stripped out.

Leave a Reply