[TIP] Defining a convention for running tests, #2
fuzzyman at voidspace.org.uk
Sat Feb 27 12:24:07 PST 2010
On 27/02/2010 20:13, C. Titus Brown wrote:
> Hi all,
> I've updated the README for my SomePackage example code,
> but I updated things only at the bottom of the page without integrating
> them into the example code. I need to put some time into investigating the
> issues that came up on the previous thread, write some working code (!), bounce
> it off a few people (Michael Foord, Robert Collins, and Tarek Ziade -- anyone
> else?) and then I'll revisit the issue on the list.
> Code contributions welcome :)
> p.s. Heck, maybe we can get some unittest2 documentation updates in at the same
> time, since Michael seems to think it solves everything. :)
Once code improvements to unittest/untitest2 are complete (before the
Python 2.7 beta deadline), revamping the unittest docs is a big goal of
mine. They are currently awful. Thankfully this isn't a huge task.
Despite the horrendous length of the preceding thread I think we
hammered out a lot. I understand your goals Titus, my only concern is
that if we are going to recommend a package tests layout and at the same
time implement a "setup.py test" command for distutils2 (for standard
library inclusion) then they should be compatible. If "setup.py test"
uses test discovery (which I think it should) then that *isn't* going to
be useful for Python 2.4-2.6 *unless* unittest2 is available. This is
the crux of the problem as I see it.
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
More information about the testing-in-python