[TIP] including (or not) tests within your package
barry at python.org
Thu Jul 29 08:07:04 PDT 2010
On Jul 28, 2010, at 07:49 AM, Olemis Lang wrote:
>>> +1 for including the tests by default.
>> Agreed 100x with Barry -
>IMO, tests shouldn't be installed in production systems ...
It's certainly within the decisions of platform packagers to separate tests
from the code, but I'd argue that it's not worth it. I just don't see what
advantage *not* including the tests gives you. And arguably it can make for
more complicated packaging, especially when those tests are in-tree, which is
usually how I structure my development branches.
Sure, there are exceptions, and big frameworks/packages might want to do
things differently. But I'd argue that the *majority* of Python packages are
fairly simple and straightforward and it's better (and easier!) to just
include the tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: not available
More information about the testing-in-python