py.test and test coverage analysis ?

J

John J. Lee

O

Osmo Salomaa

Could someone offer a suggestion on how to combine coverage analysis
with py.test.

Use the '-x' option to coverage.py to run py.test, then '-rm' to view
the results. I use about the following shell script; additionally I find
some grepping of the second command useful.

#!/bin/sh
coverage.py -x $(which py.test) "$@" || exit 1
coverage.py -rm -o /usr,/var
rm -f .coverage
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top