On Oct 06, 2015, at 05:54 AM, Donald Stufft wrote: >I dislike putting tests inside the package.
I'm a big fan of putting the tests inside the package. I've often looked at a package's tests to get a better understanding of something that was unclear for the documentation, or didn't work the way I expected. Having the tests there in the installed package makes it easier to refer to. I also find that with tox+nose2 (my preferred one-two punch for testing), it makes it quite easy to find and run the full test suite or individual tests based on a regexp pattern. I also like the symmetry of having a docs/ directory for doctests and a tests/ directory for unittests. For complex packages with lots of subpackages, I have lots of tests/ directories, so that the unitests are near to the code they test. This way the source tree gets organized for free without additional complexity in an outside-the-package tests tree. YMMV, -Barry
pgpOG4ufsOJOQ.pgp
Description: OpenPGP digital signature
_______________________________________________ Distutils-SIG maillist - [email protected] https://mail.python.org/mailman/listinfo/distutils-sig
