{"id":220,"date":"2009-07-24T08:14:55","date_gmt":"2009-07-24T08:14:55","guid":{"rendered":"http:\/\/ccgi.standard8.plus.com\/blog\/?p=220"},"modified":"2017-08-15T22:18:49","modified_gmt":"2017-08-15T21:18:49","slug":"mozmill-make-harness-for-thunderbird-testing","status":"publish","type":"post","link":"https:\/\/thebanners.uk\/standard8\/2009\/07\/24\/mozmill-make-harness-for-thunderbird-testing\/","title":{"rendered":"MozMill make harness for Thunderbird testing"},"content":{"rendered":"<p>Thunderbird has been lacking front-end user interface tests for a while. We aren&#8217;t easily able to run mochitest or chrome tests, so we&#8217;ve been relying on <a href=\"https:\/\/developer.mozilla.org\/en\/Thunderbird\/Thunderbird_Automated_Testing#Core_Tests_expanded_for_Thunderbird\">xpcshell-tests<\/a> and our nightly testers.<\/p>\n<p>Hence, since <a href=\"http:\/\/code.google.com\/p\/mozmill\/\">MozMill<\/a> was initially released, we&#8217;ve been looking at it to drive our front-end testing on Thunderbird. Over the last couple of months, <a href=\"http:\/\/www.visophyte.org\/blog\">Andrew<\/a> and others have been writing MozMill tests to cover their work. The biggest set of these is the <a href=\"http:\/\/mxr.mozilla.org\/comm-central\/source\/mail\/test\/mozmill\/folder-display\/\">folder-display<\/a> tests that were written to cover the re-factoring of the code behind the folder and message displays.<\/p>\n<p>Whilst they have been doing that, I have been driving forward, with <a href=\"http:\/\/www.visophyte.org\/blog\">Andrew<\/a>&#8216;s and <a href=\"http:\/\/perso.hirlimann.net\/~ludo\/\">Ludovic<\/a>&#8216;s help, making a MozMill harness capable of running the tests with Thunderbird and <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=500142\">hooking it into the build system<\/a>. As a result, from today, if you do a Thunderbird build and have the appropriate MozMill components installed, you can now run:<\/p>\n<p><code>make mozmill<\/code><\/p>\n<p>and this will run all the mozmill tests that we&#8217;ve got checked in. There&#8217;s also a <code>mozmill-one<\/code> target for running a single test or a single set of tests.<\/p>\n<p>With this simple way to run it, we&#8217;re now looking at <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=504304\">hooking up a tinderbox<\/a> to run the tests whenever someone checks in &#8211; just like our other test boxes. The tinderbox will initially just be a box we&#8217;re testing the automation on &#8211; there&#8217;s a few rough edges we need to smooth out e.g. installation of mozmill, how stable is it as a platform etc &#8211; but it is a start. More on that once it is up and running.<\/p>\n<p>There are also other ways we are <a href=\"https:\/\/wiki.mozilla.org\/User:Standard8\/Thunderbird_Automated_Tests_Planning\">thinking of extending these tests<\/a> &#8211; hooking up to fake servers and including as part of make package &#8211; so that anyone can download the tests and run them on a relevant build (and write more!).<\/p>\n<p>Documentation for how to install and run the Thunderbird MozMill tests can be <a href=\"https:\/\/developer.mozilla.org\/en\/Thunderbird\/Thunderbird_MozMill_Testing\">found on devmo<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thunderbird has been lacking front-end user interface tests for a while. We aren&#8217;t easily able to run mochitest or chrome tests, so we&#8217;ve been relying on xpcshell-tests and our nightly testers. Hence, since MozMill was initially released, we&#8217;ve been looking at it to drive our front-end testing on Thunderbird. Over the last couple of months, &hellip; <a href=\"https:\/\/thebanners.uk\/standard8\/2009\/07\/24\/mozmill-make-harness-for-thunderbird-testing\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;MozMill make harness for Thunderbird testing&#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,8],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-mozilla","category-thunderbird"],"_links":{"self":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/220","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=220"}],"version-history":[{"count":1,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":638,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/220\/revisions\/638"}],"wp:attachment":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}