{"id":1811,"date":"2021-03-02T20:51:23","date_gmt":"2021-03-02T20:51:23","guid":{"rendered":"https:\/\/jan.schnasse.org\/blog\/?p=1811"},"modified":"2026-09-28T11:38:03","modified_gmt":"2026-09-28T09:38:03","slug":"testing-beyond-coverage","status":"publish","type":"post","link":"https:\/\/jan.schnasse.org\/blog\/2021\/03\/02\/testing-beyond-coverage\/","title":{"rendered":"Testing beyond Coverage"},"content":{"rendered":"<p><a href=\"https:\/\/increment.com\/reliability\/testing-beyond-coverage\/\">https:\/\/increment.com\/reliability\/testing-beyond-coverage\/<\/a><\/p>\n<p>While tests can\u2019t 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\u2019s Commons Collections, which all cover part of a method called <code>ensureCapacity<\/code>. Yet not a single test fails when the <code>ensureCapacity<\/code> body is stripped out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/increment.com\/reliability\/testing-beyond-coverage\/ While tests can\u2019t 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\u2019s Commons Collections, which all cover part of a method called ensureCapacity. Yet not a single test fails when the ensureCapacity body [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1811","post","type-post","status-publish","format-standard","hentry","category-bookmarks"],"_links":{"self":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/1811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/comments?post=1811"}],"version-history":[{"count":1,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/1811\/revisions"}],"predecessor-version":[{"id":4003,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/1811\/revisions\/4003"}],"wp:attachment":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/media?parent=1811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/categories?post=1811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/tags?post=1811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}