[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python: Including Nosetest



On Oct 19, 2011, at 07:49 AM, Vincent Bernat wrote:

>You should not run test against the source package. Instead, you should run
>tests against the yet-to-be-installed version. You need to use a wrapper for
>this. I don't know if this is the best example available but it works :
>
>http://anonscm.debian.org/viewvc/python-modules/packages/cerealizer/trunk/debian/runtests.py?view=markup
>http://anonscm.debian.org/viewvc/python-modules/packages/cerealizer/trunk/debian/rules?view=markup

Requiring this kind of boilerplate to be cargo-culted into all your packages
is definitely not fun.  dh_auto_test really should make the recommended
best-practices automatic.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641314
http://article.gmane.org/gmane.comp.python.testing.general/4379

Cheers,
-Barry


Reply to: