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.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to