gecko-dev/testing/xpcshell
Krishnashish Gogoi bf13167dea Bug 982852 - Add cases to check that tests without run_test() work; r=gps
Four new test cases have been added to testing/xpcshell/selftest.py.
These new tests check that tests where run_test() is not defined
work properly.

The test cases check the following cases:
1. when only add_test() is used.
2. when only add_task() is used.
3. when both add_task() and add_test() is used.
4. when a test file is empty, i.e. contains no add_test(), add_task() or
  run_test().

Test bodies only consist of do_check_true(true) calls to make up a minimal
test without run_test() in the same vein as the other simple tests defined
previously.

Also, broke a comment up that was too long.

--HG--
extra : rebase_source : 48d055680ba8108816ecbe07008496c5281f46cc
2015-04-03 01:43:54 +05:30
..
example Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
moz-http2 Bug 1136361 - update node-http2 on ci. rs=mcmanus 2015-02-26 11:00:38 -08:00
moz-spdy bug 1102923 - test_spdy backend separate push body and err handlers r=test-only 2015-02-05 20:44:25 -05:00
node-http2 Bug 1136361 - update node-http2 on ci. rs=mcmanus 2015-02-26 11:00:38 -08:00
node-spdy bug 1097944 - node-spdy 1.29.1 for spdy/3.1 updates 1/2 r=hurley 2014-11-14 20:04:19 -05:00
b2g_xpcshell_venv.sh
dbg-actors.js Bug 809561 - Integrate xpcshell test harness with chrome remote debugging. r=past/chmanchester 2014-11-29 10:40:58 +11:00
head.js Bug 982852 - Make run_test() in xpcshell-tests optional; r=gps 2015-04-02 22:32:18 +05:30
mach_commands.py Bug 987360 - Add ability to tag tests with arbitrary strings and run them, r=chmanchester 2015-03-19 16:15:33 -04:00
Makefile.in Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
moz.build Bug 809561 - Integrate xpcshell test harness with chrome remote debugging. r=past/chmanchester 2014-11-29 10:40:58 +11:00
README
remotexpcshelltests.py Bug 987360 - Add ability to tag tests with arbitrary strings and run them, r=chmanchester 2015-03-19 16:15:33 -04:00
runtestsb2g.py Bug 1033126 - Convert xpcshell tests to use mozlog.structured format for logging.;r=ted 2014-10-22 15:53:42 -04:00
runxpcshelltests.py Bug 987360 - Add ability to tag tests with arbitrary strings and run them, r=chmanchester 2015-03-19 16:15:33 -04:00
selftest.py Bug 982852 - Add cases to check that tests without run_test() work; r=gps 2015-04-03 01:43:54 +05:30

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