[TIP] including tests in packages, or not

Fernando Perez fperez.net at gmail.com
Sun Sep 13 19:32:48 PDT 2009

On Sun, Sep 13, 2009 at 6:55 PM, C. Titus Brown <ctb at msu.edu> wrote:
>    tagnabbit/
>       __init__.py
>       ...
>       tests/

That's what we always do to make sure the tests get installed as part
of the package, and not just on the developer's machines.  When users
report problems, it's much nicer to tell them:

first, run
python -c 'import tagnabbit;tagnabbit.test(verbose=True)'

and paste the result of that for us.

or somesuch.  It helps tremendously to know what your test suite does
on their machine, before starting to dig deeper.



More information about the testing-in-python mailing list