[Pulp-list] Nosetests with coverage

Jay Dobies jason.dobies at redhat.com
Mon May 2 15:46:38 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

https://fedorahosted.org/pulp/wiki/UGDevelopment

I also put this info on the development page (not sure why I didn't just
send the link to it in the first place).

On 05/02/2011 11:43 AM, Jay Dobies wrote:
> 1. Install the coverage plugin for nosetests:
> 
> easy_install coverage
> 
> 2. When you run the test suite with nosetests, pass in the following flags:
> 
> --with-coverage --cover-html --cover-package pulp --cover-erase
> 
> A quick explanation:
> --with-coverage - actually does the coverage checking
> --cover-html - generate HTML pages instead of just the console output
> --cover-package pulp - says to only generate coverage numbers for the
> pulp project; if not you get a lot more fluff in the output
> --cover-erase - erase the previously generated reports if they exist
> 
> That'll put them in a directory called "cover" which I think is in
> "unit" (it may be your cwd if you run with -w).


- -- 
Jay Dobies
RHCE# 805008743336126
Freenode: jdob
http://pulpproject.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNvtHeAAoJEOMmcTqOSQHCfm0H/0+ckRXeH6de4I1/u9Azc395
fuwkTHkiqSAr+N6ub9W6hmwUATQzohrmawlcKDMmV+Rf0y5wAprG0PgGXNJrFNwI
XB9E4jDlYEdyf2YUd1kYUpU26kgVcWcXQHeZ0wmi4Mu3kZVkl9Xb8tX5unhit9pJ
UCmZoIVc2O4xXG6tLsHu2Bp5nt29Z+g6Bdxprw63rYQclYKpxJXZErudG9dB7E2b
VUVgbdlEKbBMCIc+9F4k9LDVozioCOtoWiD1ZZv7JB1kjLjf0RszF8esQJxKOdNW
G3Br+5YhIzaliRM+Q23UiiqJBVxRZ6vOkNrszIDqKjUEYIQFeD1puVS9ymtWJW4=
=Nt7c
-----END PGP SIGNATURE-----



More information about the Pulp-list mailing list