gecko-dev/testing/mozbase
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
..
docs Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted 2015-02-09 16:13:00 -05:00
manifestparser Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted 2015-02-09 16:13:00 -05:00
mozcrash
mozdebug
mozdevice Bug 1127928 - Increase pushDir timeout for xpcshell tests directory to 600 seconds; r=wlach 2015-01-30 15:23:41 -07:00
mozfile
mozhttpd
mozinfo
mozinstall Bug 1130905 - [mozinstall] Fix re-raising of exception in case of failing install or uninstall. r=ahal 2015-02-09 19:03:27 +01:00
mozlog Bug 1016929 - [mozlog] html formatter imports py.xml, doesn't declare it as a dependency. r=jgraham 2015-02-04 09:54:00 +01:00
moznetwork
mozprocess
mozprofile Bug 1121037 - Release mozprofile 0.23. r=whimboo 2015-01-13 23:56:57 +05:30
mozrunner Bug 1003408 - increase timeout for test_start_with_outputTimeout to avoid failures on test machines; r=wlach 2015-01-23 12:51:34 -05:00
mozsystemmonitor
moztest
mozversion
Makefile.in
moz.build
packages.txt
README.md
setup_development.py
test-manifest.ini
test.py
versioninfo.py

Mozbase

Mozbase is a set of easy-to-use Python packages forming a supplemental standard library for Mozilla. It provides consistency and reduces redundancy in automation and other system-level software. All of Mozilla's test harnesses use mozbase to some degree, including Talos, mochitest, reftest, Autophone, and Eideticker.

Learn more about mozbase at the project page.

Read detailed docs online, or build them locally by running "make html" in the docs directory.

Consult open bugs and feel free to file new bugs.