[TIP] Getting covered lines using python-coverage
ned at nedbatchelder.com
Sat Feb 20 11:58:56 PST 2016
This is an interesting question :) If you don't mind me asking, why do
you want the covered lines, and why don't the existing reports suit your
need? The XML report is the most machine-readable, you might find that
easier than dealing with the annotated files.
The standard library isn't covered unless you ask for it with the
--pylib switch on "run".
On 2/20/16 2:43 PM, ThanhVu (Vu) Nguyen wrote:
> Hi, I am wondering how to get the covered lines using python-coverage
> ? Running python-coverage report -m gives you the uncovered/missed
> lines. is there a similar option that gives the covered lines ?
> Currently to get the covered lines I use python-coverage annotate and
> go through each of the filename,cover source file and parse for those
> with prefix ">" . But this method of using annotate doesn't work
> for standard library, it generates no filename,cover files. Is this
> a known issue ? any work around ?
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python