A less intrusive way to run mochitest-plain
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 
- 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  to look into that.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the firefox-dev