gecko-dev/testing/mochitest
Andrew Halberstadt d22477cea4 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 : 7afc5d677717279e477d420899ba839073de2d8f
2015-02-09 16:13:00 -05:00
..
chrome Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
dynamic
manifests Bug 946065 - Part 10: Move content/media/ to dom/. r=peterv 2014-10-25 20:24:36 +03:00
MochiKit
pywebsocket Bug 792831 - WebSocket permessage compression extension, r=jduell 2014-12-29 12:43:40 +01:00
roboextender Bug 1055144 - Implement sendRequestForResult. r=wesj 2014-09-02 15:53:29 -07:00
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 Bug 1026785 - Fix typo. r=me DONTBUILD 2014-08-09 17:36:09 -04:00
tests Bug 1125383 - Unbreak running single mochitests using the runtests.py script directly; r=ted 2015-01-28 12:08:21 -05:00
android23.json Bug 1083347 - Removing entries from android23.json and annotating manifests. r=gbrown 2014-11-03 12:01:51 -08:00
android.json Bug 1083347 - Patch to remove entries in androidx86.json and annotate manifests. r=gbrown 2014-10-31 10:31:00 +01:00
androidx86.json Bug 1083347 - Patch to remove entries in androidx86.json and annotate manifests. r=gbrown 2014-10-31 10:31:00 +01:00
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 Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
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 Bug 1083272 - remove chrome-harness.js ability to load file list from jar file. r=ahal 2014-10-17 10:01:21 -04:00
chunkifyTests.js Bug 1101976 - fix start-at/end-at support because of odd test formats with mochitest-browser, r=ted 2014-11-20 00:02:09 +00:00
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 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
jetpack-addon-harness.js Bug 1097334: Fix console tests in mochitest-jetpack by setting the default log level to info. r=erikvold 2014-11-17 09:58:08 -08:00
jetpack-addon-overlay.xul Bug 1035512: Add a new common JS testing harness based on the mochitest test runner. r=gps, ted, erikvold, jmaher 2014-09-22 11:08:06 -07:00
jetpack-package-harness.js Bug 1083927 - IndexedDB: Subdomain Quota Management; r=bent,ehsan 2014-11-28 09:44:12 +01:00
jetpack-package-overlay.xul Bug 1035512: Add a new common JS testing harness based on the mochitest test runner. r=gps, ted, erikvold, jmaher 2014-09-22 11:08:06 -07:00
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 Bug 1076446 (attempt 2) - Make the DMD test work on Windows. r=glandium. 2014-10-09 19:28:33 -07:00
manifest.webapp Bug 989198, Patch 4: Dispatch both chrome event and key event for hardward keys, and add new permission, r=fabrice. 2014-11-03 15:05:43 +08:00
manifestLibrary.js Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
mochitest_options.py Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted 2015-02-09 16:13:00 -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 Bug 1026290: Delay mochitest-chrome redirect until after MozAfterPaint; r=jmaher 2014-11-19 15:43:28 -07:00
runtests.py Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted 2015-02-09 16:13:00 -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.