gecko-dev/testing/xpcshell
Geoff Brown da36fe7c54 Bug 1569982 - Respect verify annotations when running tests in mach with --verify; r=bc
Test manifest annotations like "skip-if = verify" are normally handled in mozharness:
When a TV task finds a modified test that needs verification, but that test is skipped
in verify mode, mozharness discards the test from the list of tests to be run.
When running tests locally (mach mochitest, etc), these annotations should also be
respected, and are currently handled in wpt and reftest harnesses, but not in
mochitest or xpcshell -- rectified by this patch. mochitest and xpcshell had
neglected to set mozinfo["verify"] when running in verify mode -- easily corrected.
It should be noted that when running tests locally and a single test is requested,
most test harnesses run the requested test even if it is skip-annotated. Thus,
"mach test <test> --verify" will continue to run tests annotated "skip-if = verify"
and this patch only changes the mochitest/xpcshell behavior of verify-skipped
tests when run with "mach test <directory> --verify" -- a long-running test mode
with complex logging never used in continuous integration.

Differential Revision: https://phabricator.services.mozilla.com/D40486

--HG--
extra : moz-landing-system : lando
2019-08-06 22:13:50 +00:00
..
dns-packet Bug 1540656 - Add dns-packet and node-ip modules r=dragana 2019-04-04 15:32:21 +00:00
example Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
moz-http2 Bug 1563824 - New error NS_ERROR_TOO_MANY_REQUESTS for 429 response r=mayhemer 2019-07-06 21:46:00 +00:00
node-http2
node-ip Bug 1540656 - Add dns-packet and node-ip modules r=dragana 2019-04-04 15:32:21 +00:00
dbg-actors.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
head.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
mach_commands.py Bug 1548597 - Relax requirements for fennec in android xpcshell harness; r=jmaher 2019-05-02 17:38:07 +00:00
mach_test_package_commands.py
moz.build bug 1531958 - make http2 test certificates more consistent with existing test certificate infrastructure r=dragana 2019-03-04 15:42:07 +00:00
python.ini
README
remotexpcshelltests.py Bug 1004308 - rename BadCertServer to BadCertAndPinningServer r=keeler 2019-07-31 17:06:07 +00:00
runxpcshelltests.py Bug 1569982 - Respect verify annotations when running tests in mach with --verify; r=bc 2019-08-06 22:13:50 +00:00
selftest.py Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia,jorendorff 2019-07-01 22:14:47 +00:00
xpcshellcommandline.py Bug 1558598 - Force WebRender on or off in the xpcshell harness. r=ahal 2019-06-29 09:50:20 +00:00

Simple xpcshell-based test harness

converted from netwerk/test/unit

Some documentation at http://developer.mozilla.org/en/docs/Writing_xpcshell-based_unit_tests
See also http://wiki.mozilla.org/SoftwareTesting:Tools:Simple_xpcshell_test_harness