gecko-dev/testing/xpcshell
Geoff Brown 738edf575d Bug 1526654 - Use xpcshell sequential mode consistently when running a single test; r=bc
In the harness, sequential mode is set when self.singleFile is set. self.singleFile has
been set correctly when a single test is specified as a test_path (mach xpcshell-test <test>)
but it has not been set correctly if a single test is specified in a manifest (mach test <test);
this patch corrects for that by setting self.singleFile after all test specifications have
set self.alltests.

An unintended consequence of the code rearrangement is that the chunk_by_slice filter is
now used even when self.singleFile would be set -- but only if totalChunks > 1; this
situation seems very unlikely, and the consequences minimal.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 06:14:52 +00:00
..
example Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
moz-http2 bug 1531958 - make http2 test certificates more consistent with existing test certificate infrastructure r=dragana 2019-03-04 15:42:07 +00:00
node-http2
README
dbg-actors.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
head.js Bug 1524687: Part 10 - Convert Windows widget module to static registration. r=erahm 2019-01-25 15:20:36 -08:00
mach_commands.py Bug 1519477 - Try to detect networking connectivity problems before running local tests on android; r=bc 2019-01-16 14:59:35 -07: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 Bug 1491766 - Enable selftest.py on Mac now that all our builds are later than 10.7. r=ahal 2018-09-17 14:05:39 +00:00
remotexpcshelltests.py Bug 1515189 - Consolidate ADBDevice and ADBAndroid classes; r=bc 2018-12-19 14:04:02 -07:00
runxpcshelltests.py Bug 1526654 - Use xpcshell sequential mode consistently when running a single test; r=bc 2019-03-13 06:14:52 +00:00
selftest.py Bug 1455176: Follow-up: Fix build bustage from xpcshell self-test. r=bustage CLOSED TREE 2018-04-19 15:11:15 -07:00
xpcshellcommandline.py Bug 1522689 - Update command line help for several android test commands; r=bc 2019-02-01 07:18:05 -07:00

README

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