[TIP] Guidelines for where to put tests & how to package them
Michał Kwiatkowski
constant.beta at gmail.com
Thu Feb 25 00:23:50 PST 2010
On Thu, Feb 25, 2010 at 6:01 AM, C. Titus Brown <ctb at msu.edu> wrote:
> I've produced a simple draft proposal & example where you put your unit tests
> under a package dir, somepackage/tests/.
>
> You can run these tests with
>
> % python -m somepackage.tests.run
>
> and you can also do (if setuptools/distribute is installed)
>
> % python setup.py test
>
> ---
>
> Full source at http://github.com/ctb/SomePackage or downloadable
> at
>
> http://lyorn.idyll.org/~t/transfer/SomePackage.tar.gz
>
> Comments? Thoughts? Complaints? Issues I missed?
Where the integration tests (i.e. those using multiple packages of a
single project) go?
Cheers,
mk
More information about the testing-in-python
mailing list