Message108109
Yes, running individual tests has already been implemented as part of unittest (where it belongs):
./python -m unittest test.test_httpservers.BaseHTTPServerTestCase.test_handler
.
----------------------------------------------------------------------
Ran 1 test in 0.102s
OK
The 'TestCase' marks classes that are actually test cases rather than helper classes, and test_ is how unittest determines which methods are test methods and which are support methods. These strings are not fixed from test file to test file, so it is necessary to specify the full name (and should be).
the --list option that prints the test name in a cut and paste friendly fashion is somewhat interesting, perhaps you could open a new issue to propose adding that to unittest. If you do open an issue, make michael.foord nosy on it. |
|
Date |
User |
Action |
Args |
2010-06-18 13:55:15 | r.david.murray | set | recipients:
+ r.david.murray, exarkun, techtonik |
2010-06-18 13:55:15 | r.david.murray | set | messageid: <1276869315.58.0.670063185393.issue9028@psf.upfronthosting.co.za> |
2010-06-18 13:55:12 | r.david.murray | link | issue9028 messages |
2010-06-18 13:55:11 | r.david.murray | create | |
|