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 _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform