[Freeipa-devel] [PATCH] 0033 Pass make-test arguments through to Nose + Test coverage
Petr Viktorin
pviktori at redhat.com
Wed Apr 4 15:28:16 UTC 2012
Currently, our test script forwards a select few command line arguments
to nosetests.
This patch removes the filtering, passing all arguments through.
This allows things like disabling output redirection (--nocapture),
dropping into a debugger (--pdb, --pdb-failures), coverage reporting
(--with-cover, once installed), etc.
https://fedorahosted.org/freeipa/ticket/2135
I believe this is a better solution than adding individual options as
they're needed.
---
A coverage report can be generated by combining data from both the tests
and the server. I run this:
Setup:
yum install python-coverage
echo /.coverage* >> .git/info/exclude
echo /htmlcov/ >> .git/info/exclude
Terminal 1:
coverage erase
coverage run -p --source . lite-server.py
Terminal 2:
kinit
./make-test --with-coverage --cover-inclusive
Terminal 1 again:
^C
coverage combine
coverage html --omit=/usr/lib/*
Then view ./htmlcov/index.html in a browser.
--
Petr³
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0033-Pass-make-test-arguments-through-to-Nose.patch
Type: text/x-patch
Size: 2056 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120404/c46507a7/attachment.bin>
More information about the Freeipa-devel
mailing list