mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
0ec47f620a
DONTBUILD
1019 B
1019 B
Testing
The remote agent has unit- and functional tests located under
remote/test/{unit,browser}
.
You may run all the tests under a particular subfolder like this:
% ./mach test remote
Unit tests
Because tests are run in parallel and xpcshell itself is quite chatty, it can sometimes be useful to run the tests in sequence:
% ./mach xcpshell-test --sequential remote/test/unit/test_Assert.js
The unit tests will appear as part of the X
(for xpcshell) jobs
on Treeherder.
Functional tests
We also have a set of functional browser chrome tests located under remote/test/browser:
% ./mach mochitest -f browser remote/test/browser/browser_cdp.js
The functional tests will appear under the M
(for mochitest)
category in the bc
(browser-chrome) jobs on Treeherder.