gecko/testing/mochitest
Andrew Halberstadt ba271f3c89 Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest:

    from manifestparser import expression
    import mozinfo

    def timeout_if(tests, values):
        for test in tests:
            if 'timeout-if' in test:
                timeout, condition = test['timeout-if'].split(',', 1)
                if expression.parse(condition, **values):
                    test['timeout'] = timeout
        yield test

    tests = mp.active_tests(filters=[timeout_if], **mozinfo.info)

--HG--
extra : rebase_source : adead90910811e71e8ea2bb862f2b8e92f2c1bee
2015-02-10 09:38:29 -05:00
..
chrome
dynamic
manifests
MochiKit
pywebsocket Bug 792831 - WebSocket permessage compression extension, r=jduell 2014-12-29 12:43:40 +01:00
roboextender
ssltunnel Bug 1096197 - Ensure SSL Error reports work when there is no failed certificate chain. r=keeler 2015-01-07 02:28:00 -05:00
static
tests Bug 1131026 Rename nsITextInputProcessor.init() and .initForTests() to .beginInputTransaction() and .beginInputTransactionForTests() r=smaug, sr=smaug 2015-02-10 17:09:29 +09:00
android23.json
android.json
androidx86.json
b2g_start_script.js Bug 797164 - Support chrome tests on b2g emulator; r=ahal 2014-12-23 14:17:42 -07:00
bisection.py
browser-harness.xul
browser-test-overlay.xul
browser-test.js Bug 1098700 - Mochitests that are annotated fails-if don't output a useful error if they unexpectedly pass. r=jmaher 2015-01-12 09:31:40 -05:00
cc-analyzer.js
chrome-harness.js
chunkifyTests.js
gen_template.pl Bug 1127943 - Make testharness.js the default template for gen_template.pl; r=bz (NPOTB, DONTBUILD) 2015-01-30 20:38:45 +01:00
gl.json
harness.xul
install.rdf
jar.mn Bug 1130287 - Expose isB2G in SpecialPowers. r=sicking 2015-02-08 10:09:00 +01:00
jetpack-addon-harness.js
jetpack-addon-overlay.xul
jetpack-package-harness.js
jetpack-package-overlay.xul
mach_commands.py Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
Makefile.in
manifest.webapp
manifestLibrary.js
mochitest_options.py Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted 2015-02-10 09:38:29 -05:00
mochitest-e10s-utils.js Bug 1127013 - Use unix file endings in mochitest-e10s-utils. r=jmaher 2015-01-30 10:59:02 -08:00
moz.build Bug 1120983 - [manifestparser] Split manifestparser.py into several smaller files, r=wlach 2015-01-15 09:37:51 -05:00
nested_setup.js Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
pywebsocket_wrapper.py
README.txt
redirect.html
runtests.py Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted 2015-02-10 09:38:29 -05:00
runtestsb2g.py Bug 797164 - Support chrome tests on b2g emulator; r=ahal 2014-12-23 14:17:42 -07:00
runtestsremote.py Bug 1092835 - Workaround for old ssltunnel from hostutils. r=jmaher 2014-12-13 20:09:00 +09:00
server.js Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00

See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.