{"id":94,"date":"2007-11-08T09:07:30","date_gmt":"2007-11-08T09:07:30","guid":{"rendered":"http:\/\/quinert.com\/blog\/xml-rss2.php?itemid=57"},"modified":"2007-11-08T09:07:30","modified_gmt":"2007-11-08T09:07:30","slug":"passing-and-failing-tests-considered-harmful","status":"publish","type":"post","link":"http:\/\/www.software-testing.com.au\/blog\/2007\/11\/08\/passing-and-failing-tests-considered-harmful\/","title":{"rendered":"Passing and failing tests considered harmful"},"content":{"rendered":"<p>Alan Page of Microsoft suggests that there is a perfect world of passed and failed tests, and shades of grey that help us provide more useful information.  He then asks &#8220;What else do you report as test results <i>(to supplement test case pass\/fail counts)?<\/i> What do those results mean?&#8221;  Read more at:<br \/>\n<a href=\"http:\/\/blogs.msdn.com\/alanpa\/archive\/2007\/11\/07\/pass-fail-and-other.aspx\">http:\/\/blogs.msdn.com\/alanpa\/archive\/2007\/11\/07\/pass-fail-and-other.aspx<\/a><\/p>\n<p>I think Alan intended to say *automated* tests either pass or fail, but I&#8217;ll wait for him to clarify.  As a human, I&#8217;m easily capable of saying &#8216;I don&#8217;t know whether we should be happy with what I&#8217;m observing or not&#8217;.  Or, &#8216;The test case passed, but I observed other problems that don&#8217;t appear to be related to this test case&#8217;.  Or, &#8216;I got 9 of the 10 useful pieces of information from that test case, and the 10th piece of information isn&#8217;t really that important&#8217;.  More importantly, the binary &#8216;pass\/fail&#8217; state can also distract from the idea that the tests exist simply to reveal information.  That a &#8216;failed&#8217; test violated my expectation may or not be a problem.<\/p>\n<p>So my preference is to shy away from quantitative metrics, and look to have conversations with stakeholders instead.  If I can&#8217;t have those conversations, then I&#8217;ll broadcast the qualitative information via test reports.<\/p>\n<p>To state it another way, I don&#8217;t think that management actually care about what percentage of test cases passed, except that someone somewhere along the way made them think it was a useful proxy metric for something else.  I think they want to know &#8216;Can we feel comfortable shipping?&#8217; or the equivalent for your environment.  I think reducing the answer to that question to &#8216;100 percent of the test cases passed&#8217; really doesn&#8217;t help.<\/p>\n<p>Having said that, if the metrics can be collected cheaply enough, and not providing them is going to upset the process police, I&#8217;ll happily report them along with some other metrics.  But I&#8217;ll be sure to supplement them with a story about how our testing has gone &#8211; Trends, events over time, threats to the product and how confident I feel in the test effort.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Alan Page of Microsoft suggests that there is a perfect world of passed and failed tests, and shades of grey that help us provide more useful information. He then asks &#8220;What else do you report as test results (to supplement test case pass\/fail counts)? What do those results mean?&#8221; Read more at: http:\/\/blogs.msdn.com\/alanpa\/archive\/2007\/11\/07\/pass-fail-and-other.aspx I think [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,21,33,35,40],"tags":[],"class_list":["post-94","post","type-post","status-publish","format-standard","hentry","category-communication","category-metrics","category-teamwork","category-test-management","category-value"],"_links":{"self":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":0,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/categories?post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/tags?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}