{"id":160,"date":"2009-03-23T09:50:44","date_gmt":"2009-03-23T09:50:44","guid":{"rendered":"http:\/\/ccgi.standard8.plus.com\/blog\/?p=160"},"modified":"2017-08-15T22:18:50","modified_gmt":"2017-08-15T21:18:50","slug":"100-in-testsuite-bugs-in-mailnews-core-thunderbird","status":"publish","type":"post","link":"https:\/\/thebanners.uk\/standard8\/2009\/03\/23\/100-in-testsuite-bugs-in-mailnews-core-thunderbird\/","title":{"rendered":">100 in-testsuite+ bugs in MailNews Core &#038; Thunderbird"},"content":{"rendered":"<p>A discussion at our status meeting last week, prompted me to take a look at how many bugs MailNews Core and Thunderbird have marked as <a href=\"https:\/\/bugzilla.mozilla.org\/buglist.cgi?query_format=advanced&amp;short_desc_type=allwordssubstr&amp;short_desc=&amp;product=MailNews+Core&amp;product=Thunderbird&amp;long_desc_type=substring&amp;long_desc=&amp;bug_file_loc_type=allwordssubstr&amp;bug_file_loc=&amp;status_whiteboard_type=allwordssubstr&amp;status_whiteboard=&amp;keywords_type=allwords&amp;keywords=&amp;emailassigned_to1=1&amp;emailtype1=exact&amp;email1=&amp;emailassigned_to2=1&amp;emailreporter2=1&amp;emailqa_contact2=1&amp;emailtype2=exact&amp;email2=&amp;bugidtype=include&amp;bug_id=&amp;votes=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;cmdtype=doit&amp;order=Reuse+same+sort+as+last+time&amp;field0-0-0=flagtypes.name&amp;type0-0-0=equals&amp;value0-0-0=in-testsuite%2B\">in-testsuite+<\/a>. I was pleased to see it was just reaching 100.<\/p>\n<p>(For those that don&#8217;t know, we mark a bug as in-testsuite+ when we have an automated test that covers that bug).<\/p>\n<p>I committed the first <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=405147\">in-testsuite+ bug<\/a> for MailNews in November 2007, this covered some very basic address book functions. Since then we&#8217;ve grown the tests to cover address book (more extensively), POP3, IMAP, SMTP, NNTP, bayesian spam filter, aspects of message composition and sending, gloda (the new search database), text import of address books, searching messages, folder management, and a few other things.<\/p>\n<p>Although our actual code coverage of these areas is not very big, we do cover a lot of different areas of MailNews with these tests. Our major protocols are covered (to a limited extent) with the use of <a href=\"http:\/\/ccgi.standard8.plus.com\/blog\/archives\/20\">fake servers<\/a> &#8211; as a result of the <a href=\"http:\/\/ccgi.standard8.plus.com\/blog\/archives\/127\">password manager switch<\/a>, we also have basic authentication tests for these protocols. So if someone breaks something significant, we&#8217;re much more likely to know about it before it even hits the nightly builds.<\/p>\n<p>We&#8217;ve never (yet) had a policy of all patches requiring unit tests, because for Thunderbird we haven&#8217;t got the same testsuite possibilities as Firefox &#8211; mainly due to the lack of a browser interface. Various solutions have been proposed and partially investigated, I expect we&#8217;ll be looking at the chrome\/UI area of testing more after we release Thunderbird 3.<\/p>\n<p>We&#8217;re going to be looking at how to encourage writing more unit tests, and what we can do to make writing them easier, so keep watching.<\/p>\n<p>I&#8217;d like to say thank you to all those that have written unit tests for MailNews so far. Keep going, unit tests have, and will make Thunderbird &amp; SeaMonkey better products.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A discussion at our status meeting last week, prompted me to take a look at how many bugs MailNews Core and Thunderbird have marked as in-testsuite+. I was pleased to see it was just reaching 100. (For those that don&#8217;t know, we mark a bug as in-testsuite+ when we have an automated test that covers &hellip; <a href=\"https:\/\/thebanners.uk\/standard8\/2009\/03\/23\/100-in-testsuite-bugs-in-mailnews-core-thunderbird\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;>100 in-testsuite+ bugs in MailNews Core &#038; Thunderbird&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7,8],"tags":[],"class_list":["post-160","post","type-post","status-publish","format-standard","hentry","category-mozilla","category-seamonkey","category-thunderbird"],"_links":{"self":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":1,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":649,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/160\/revisions\/649"}],"wp:attachment":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}