Merge lp://staging/~duncf/pyjunitxml/cmdline-runner into lp://staging/pyjunitxml
Status: | Merged |
---|---|
Merged at revision: | 27 |
Proposed branch: | lp://staging/~duncf/pyjunitxml/cmdline-runner |
Merge into: | lp://staging/pyjunitxml |
Diff against target: |
689 lines (+597/-4) 10 files modified
junitxml/__init__.py (+9/-3) junitxml/__main__.py (+12/-0) junitxml/main.py (+167/-0) junitxml/runner.py (+71/-0) junitxml/tests/__init__.py (+8/-0) junitxml/tests/test_junitxml.py (+5/-1) junitxml/tests/test_main.py (+198/-0) junitxml/tests/test_runner.py (+119/-0) pyjunitxml (+7/-0) setup.py (+1/-0) |
To merge this branch: | bzr merge lp://staging/~duncf/pyjunitxml/cmdline-runner |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins | Approve | ||
Review via email:
|
Description of the change
Adds support for running unit tests under junitxml directly from the command line. Tests can be specified by name, or (if available) they can be discovered automatically.
This allows for existing unit tests to be run directly by a continuous integration system without needing to write custom wrapper scripts. It also allows for test discovery so that new unit tests can be run without needing to update a wrapper script.
To use, run "python -m junitxml", "python -m junitxml.main" or "python -c 'import junitxml.
New code is thoroughly unit tested, and has been tested on Python 2.4, 2.5, 2.6, 2.7, 3.1 and 3.2 with and without unittest2 installed.
Thanks for this, sorry for being slack - RealLife was interfering (new baby). I should get to it soon now.