MozMill make harness for Thunderbird testing

Thunderbird has been lacking front-end user interface tests for a while. We aren’t easily able to run mochitest or chrome tests, so we’ve been relying on xpcshell-tests and our nightly testers.

Hence, since MozMill was initially released, we’ve been looking at it to drive our front-end testing on Thunderbird. Over the last couple of months, Andrew and others have been writing MozMill tests to cover their work. The biggest set of these is the folder-display tests that were written to cover the re-factoring of the code behind the folder and message displays.

Whilst they have been doing that, I have been driving forward, with Andrew‘s and Ludovic‘s help, making a MozMill harness capable of running the tests with Thunderbird and hooking it into the build system. As a result, from today, if you do a Thunderbird build and have the appropriate MozMill components installed, you can now run:

make mozmill

and this will run all the mozmill tests that we’ve got checked in. There’s also a mozmill-one target for running a single test or a single set of tests.

With this simple way to run it, we’re now looking at hooking up a tinderbox to run the tests whenever someone checks in – just like our other test boxes. The tinderbox will initially just be a box we’re testing the automation on – there’s a few rough edges we need to smooth out e.g. installation of mozmill, how stable is it as a platform etc – but it is a start. More on that once it is up and running.

There are also other ways we are thinking of extending these tests – hooking up to fake servers and including as part of make package – so that anyone can download the tests and run them on a relevant build (and write more!).

Documentation for how to install and run the Thunderbird MozMill tests can be found on devmo.

Content Loading in Thunderbird

I’ve not blogged for a while 🙁 Mostly because I was helping getting Thunderbird 3 Beta 3 out the door and working on a few interesting projects.

However time to start again, and as Andrew alluded to earlier a lot of my time has been spent looking at loading content into Thunderbird and the various issues surrounding it.

We’re not trying to be a browser, but we believe there are places where Thunderbird can benefit from having content loaded and even the user interacting with it.

So far, we’ve tweaked the content policy so that it doesn’t assume every iframe/browser element in the mail window is the message pane, and we can therefore load content correctly. The best example of where we use this currently, is the What’s New tab that we display to the user:

Thunderbird's What's New Tab

Alongside this, we’re also looking at making sure extensions can use appropriate hooks to display content to the user (more on this later). We think there are many reasons why extensions could want to do this – Andrew’s jetpack example actually has two instances – with jetpack installed we can display jetpack’s about:jetpack page and then we can display the twitter page instead of the email. I’m sure extension authors can come up with many more ideas to experiment with.

I’ll post more about this and the other stuff I’m doing as I get them completed.

Reorganisation of Thunderbird, Lightning and Sunbird nightly directories on ftp – Tuesday 16th June

With the recent switches from cvs to hg and then the addition of the 1.9.1 branch, the Thunderbird, Lightning and Sunbird nightly directories on ftp are a bit untidy and are in need of a late spring clean to make them clearer for nightly users downloading our builds.

Unless there are any major objections, we will be actioning this change on Tuesday 16th June.

Please be prepared to update links to builds. We’ll be covering all the mozilla.org/mozilla.com/mozillamessaging.com ones that we can find.

The tracking bug for this work is Bug 481685. The full description of changes is documented here.

The changes will affect the latest-* sub-directories, resulting in the structures summarised below. The changes may also affect the names of the dated directories.

latest-* directories remaining as a result of the proposed changes (any latest-* directories or symlinks not listed will be deleted):

ftp://ftp.mozilla.org/pub/thunderbird/nightly/

  • latest-comm-1.9.1 (Thunderbird 3.0* en-US)
  • latest-comm-1.9.1-l10n (Thunderbird 3.0* Localised)
  • latest-comm-central-trunk (Thunderbird 3.1* en-US)
  • latest-comm-central-trunk-1l0n (Thunderbird 3.1* Localised)
  • latest-mozilla1.8 (Thunderbird 2.0* en-US)
  • latest-mozilla1.8-l10n (Thunderbird 2.0* Localised)

ftp://ftp.mozilla.org/pub/calendar/sunbird/nightly/

  • latest-comm-1.9.1 (Sunbird 1.0* en-US)
  • latest-comm-1.9.1-l10n (Sunbird 1.0* Localised)

There are currently no Sunbird builds for Gecko 1.9.2, but these will use the latest-comm-central-trunk version when created.

ftp://ftp.mozilla.org/pub/calendar/lightning/nightly/

  • latest-comm-1.9.1 (Lightning 1.0* en-US)

There are currently no Lightning builds for Gecko 1.9.2, but these will use the latest-comm-central-trunk version when created.

Update: Corrected Thunderbird 2.0* localised directory location