diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-09-19 16:39:00 +1000 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-09-19 16:39:00 +1000 |
| commit | b4bf5e01e4ca0eab0b52f2f3fa205683f64f5ab6 (patch) | |
| tree | 964101722442f9ef73b9004b10d1f4ddbb614d72 /python/subunit/run.py | |
| parent | 8488d3be215e8eb8ba373c5fc5818e416aa391be (diff) | |
| download | subunit-git-b4bf5e01e4ca0eab0b52f2f3fa205683f64f5ab6.tar.gz | |
Move python API documentation into the subunit pydoc.
Diffstat (limited to 'python/subunit/run.py')
| -rwxr-xr-x | python/subunit/run.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/subunit/run.py b/python/subunit/run.py index 5dad84a..66b9633 100755 --- a/python/subunit/run.py +++ b/python/subunit/run.py @@ -17,6 +17,11 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # +"""Run a unittest testcase reporting results as subunit. + + $ python -m subunit.run mylib.tests.test_suite +""" + import sys from subunit import TestProtocolClient @@ -36,7 +41,7 @@ class SubunitTestRunner(object): if __name__ == '__main__': import optparse from unittest import TestProgram - parser = optparse.OptionParser("subunitrun <tests>") + parser = optparse.OptionParser(__doc__) args = parser.parse_args()[1] runner = SubunitTestRunner() program = TestProgram(module=None, argv=[sys.argv[0]] + args, |
