[TIP] coverage.py with doctest.testfile
David Montgomery
davidlmontgomery at gmail.com
Wed Mar 7 23:43:16 PST 2007
I've been using nose for coverage as Jason Pellerin described. One
thing I just noticed is that the statistics seem to be affected by previous
runs on the same file. I found that I could gradually increase my reported
coverage statistics by inserting and removing nothing but comments, so
that the line numbers moved around.
I'm getting around this by running this from a script that always begins
by removing the .coverage file.
David
On 3/6/07, jason pellerin <jpellerin at gmail.com> wrote:
> Doctest coverage works with nose
[...]
> nosetests -v --with-doctest --doctest-extension=txt --with-coverage
> --cover-package=foo
More information about the testing-in-python
mailing list