gecko-dev/testing/xpcshell
Valentin Gosu 44081f03e7 Bug 1584397 - Make http2 proxy code execute in a separate process r=mayhemer
* Adds a new moz-http2-child.js file which gets spawned into a new process. When calling NodeServer.execute, the code gets passed to the existing moz-http2.js process which then sends it to be evaluated in the child process. Any crash in the child should not be able to kill the main node process.
* Moves the proxy creation code into test_http2-proxy.js
* Adds the new NodeServer.fork() and NodeServer.kill() static methods to spawn a new server
* Makes it easier to isolate a test's behaviour from another's. It also opens the way to moving some of the logic to individual unit tests, like we do for the proxy creation code, rather than keeping it all in moz-http2.js

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

--HG--
extra : moz-landing-system : lando
2019-11-05 15:51:43 +00:00
..
dns-packet
example Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
moz-http2 Bug 1584397 - Make http2 proxy code execute in a separate process r=mayhemer 2019-11-05 15:51:43 +00:00
node-http2 Bug 1582051 - Use Buffer.from and Buffer.alloc in moz-http2.js & friends r=kershaw 2019-09-18 13:44:16 +00:00
node-ip Bug 1582051 - Use Buffer.from and Buffer.alloc in moz-http2.js & friends r=kershaw 2019-09-18 13:44:16 +00:00
README
dbg-actors.js Bug 1572390 - Split main.js in debugger-server and debugger-server-connection r=yulia,ochameau 2019-08-08 12:44:13 +00:00
head.js Bug 1586393, part 1 - Add test-complete observer notification. r=mconley 2019-10-29 21:25:02 +00:00
mach_commands.py Bug 1553225 - Run Android 7.0 xpcshell tests against geckoview apk; r=jmaher 2019-08-21 18:24:08 +00:00
mach_test_package_commands.py
moz.build
python.ini
remotexpcshelltests.py Bug 1562773 - Add delegated credentials tests r=keeler,jcj 2019-09-17 23:31:36 +00:00
runxpcshelltests.py Bug 1456995 - enable Service Workers' parent-intercept mode on Nightly r=asuth,jgraham 2019-10-08 23:47:48 +00:00
selftest.py Bug 1517686 - Increase xpcshell harness timeout for selftest.py; r=bc 2019-10-10 16:03:38 +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

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