py.test and test coverage analysis ?
Osmo Salomaa
otsaloma at cc.hut.fi
Sun Apr 6 20:26:15 EDT 2008
On ke, 2008-04-02 at 11:23 -0600, j vickroy wrote:
> 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
--
Osmo Salomaa <otsaloma at cc.hut.fi>
More information about the Python-list
mailing list