Bug 1558755 - Add docs on how to run mochitests in headless mode, r=pbro,nchevobbe
authorOla Gasidlo <ogasidlo@mozilla.com>
Fri, 21 Jun 2019 07:55:28 +0000
changeset 479800 2d0328537dcd8e66e8d4cf4ecdad7fe1b7162682
parent 479799 6a939548fc9007b56afa96ba1ed82a4e971301db
child 479801 faba9386d77e47365668caaaff18e1e56ded821f
push id36182
push usershindli@mozilla.com
push dateFri, 21 Jun 2019 16:13:23 +0000
treeherdermozilla-central@2901d32eddaa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro, nchevobbe
bugs1558755
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1558755 - Add docs on how to run mochitests in headless mode, r=pbro,nchevobbe Differential Revision: https://phabricator.services.mozilla.com/D34683
devtools/docs/tests/mochitest-devtools.md
--- a/devtools/docs/tests/mochitest-devtools.md
+++ b/devtools/docs/tests/mochitest-devtools.md
@@ -16,10 +16,21 @@ For example, run all of the debugger bro
 ```bash
 ./mach mochitest devtools/client/debugger
 ```
 To run a specific DevTools mochitest:
 
 ```bash
 ./mach mochitest devtools/client/path/to/the/test_you_want_to_run.js
 ```
-Note that the mochitests *must* have focus while running.
+Note that the mochitests *must* have focus while running. The tests run in the browser which looks like someone is magically testing your code by hand. If the browser loses focus, the tests will stop and fail after some time. (Again, sit back and relax)
+
+In case you'd like to run the mochitests without having to care about focus and be able to touch your computer while running:
 
+```bash
+./mach mochitest --headless devtools/client/<tool>
+```
+
+You can also run just a single test:
+
+```bash
+./mach mochitest --headless devtools/client/path/to/the/test_you_want_to_run.js
+```