[Distutils] Where should I put my tests in my package?
Marius Gedminas
marius at pov.lt
Wed Nov 17 17:26:22 CET 2010
On Wed, Nov 17, 2010 at 10:14:13AM -0500, W. Matthew Wilson wrote:
> I have a few questions:
>
> 1. I would like to put lots of tests/ folders next to the code they
> test, rather than at the top level of the project. How do I make sure
> the tests folders don't get installed?
> 2. Should I worry about not installing tests? Should I install them?
There was a discussion on the testing-in-python list a while
ago: http://lists.idyll.org/pipermail/testing-in-python/2010-July/003147.html
IIRC there was no consensus reached.
> 3. Is there any pattern I should follow for organizing my tests
> within my project?
I like to put the tests inside my packages and install them:
pitz/
src/
pitz/
cmdline/
tests/
webapp/
handlers/
tests/
tests/
entity/
tests/
tests/
I also like to have one test module for each code module.
Marius Gedminas
--
Some people around here wouldn't recognize
subtlety if it hit them on the head.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20101117/f622dabf/attachment.pgp>
More information about the Distutils-SIG
mailing list