This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michael.foord
Recipients benjamin.peterson, gregory.p.smith, michael.foord
Date 2009-05-24.16:50:21
SpamBayes Score 4.774514e-13
Marked as misclassified No
Message-id <1243183842.78.0.357192494536.issue6001@psf.upfronthosting.co.za>
In-reply-to
Content
Updated patch with documentation and fixed command line usage message.

Unless there are objections I intend to check this in in the next few
days. It would be helpful if someone else could go over the
documentation and check for errors / typos etc.

I've already had feedback from a few folks. The only suggestions so far
have been:

* Instead of a discover method the functionality could be built into
TestLoader.loadTestsFromPath. This would be a substantial change and I
think it better belongs in a new method.
* discover could simply load all modules and discover TestCases instead
of needing a pattern to filter on. I think filtering is an important
feature (not least for performance and because importing arbitrary
modules is not safe). Loading all modules can be had by passing in a
pattern of '*'

The behavior as implemented is a subset of the test discovery provided
by frameworks like nose (which doesn't require all test modules to be
importable from the top level).

The load_tests protocol is an idea already in use by the Bzr test
framework and similar protocols are in use in other frameworks.
History
Date User Action Args
2009-05-24 16:50:43michael.foordsetrecipients: + michael.foord, gregory.p.smith, benjamin.peterson
2009-05-24 16:50:42michael.foordsetmessageid: <1243183842.78.0.357192494536.issue6001@psf.upfronthosting.co.za>
2009-05-24 16:50:41michael.foordlinkissue6001 messages
2009-05-24 16:50:39michael.foordcreate