mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1558755 - Add docs on how to run mochitests in headless mode, r=pbro,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D34683 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3f4a701e65
commit
36f5b54e49
@ -21,5 +21,16 @@ 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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user