A less intrusive way to run mochitest-plain

Brendan Dahl bdahl at mozilla.com
Mon Nov 20 19:48:01 UTC 2017


I just landed support for running mochitest-plain tests in headless mode.
Next time you want to run some mochitests and not be bothered by Firefox
opening and demanding focus, just add ---headless to ./mach test. Headless
mochitest-plain is supported on Windows, MacOS, and Linux.

./mach test --headless [path/to/test/]

A few notes:

- Headless mode tries to mimic native platform behavior, but it's not
possible in all cases. Tests meant to exercise code in the
widget/<platform> directory (e.g. window size changes, clipboard events,
etc) may have slightly different behavior than the native widget code and
should be tested in both headless and normal mode.

- Issues with headless mode should be filed under Firefox->Headless [1]

- Headless mochitest-plain tests are also running in automation. On
TaskCluster they show up as h<#>.

- We could potentially start running mochitests in parallel and I’ve filed
a bug [2] to look into that.

-Brendan

[1]
https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Headless

[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1419135
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/firefox-dev/attachments/20171120/378f6385/attachment.html>


More information about the firefox-dev mailing list