[TIP] Running tests
noah.gift at gmail.com
Wed May 6 21:45:30 PDT 2009
On Thu, May 7, 2009 at 12:47 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
> "C. Titus Brown" <ctb at msu.edu> writes:
>> How do you all run your tests? And is there a Python-wide standard
>> anywhere for how to run them?
> I'm pretty sure there's no Python-wide standard other than unittest and
> its TestRunner.
>> I know 'python setup.py test' is a semi-standard under setuptools, but
>> it only works with unittest and nose.
> Right, so I only use unittest and nose :-)
I put all of my tests in the same directory as the modules not a test
directory, and I run nosetests from the top down.
> \ Lucifer: “Just sign the Contract, sir, and the Piano is yours.” |
> `\ Ray: “Sheesh! This is long! Mind if I sign it now and read it |
> _o__) later?” —http://www.achewood.com/ |
> Ben Finney
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
More information about the testing-in-python