[TIP] Coverage.py 4.1b2: re-written branch measurement

Ned Batchelder ned at nedbatchelder.com
Sun Jan 24 06:14:23 PST 2016

On 1/23/16 11:37 PM, Carl Meyer wrote:
> Hi Ned,
> On 01/23/2016 06:08 PM, Ned Batchelder wrote:
>> I've just release Coverage.py 4.1b2:
>> https://pypi.python.org/pypi/coverage/4.1b2
> Thanks for all the work that went into this release!
> Just tried it on one (~27k sloc) project, and it didn't report any new
> uncovered branches. Of course I don't know off-hand whether that's
> because I don't have any of the branch cases it newly understands, or I
> do but they were already covered.
> Interestingly, it does break the output filtering in my pytest-smartcov
> plugin (which outputs a terminal report at the end of every test run,
> filtered so I see only files with less than 100% coverage) because it
> now writes the newline at the end of each line in a separate `.write()`
> call. But I can adjust the plugin to account for that easily enough.

You might also like the --skip-covered switch that is new in 4.0 :)
> Carl
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20160124/54c239bd/attachment.html>

More information about the testing-in-python mailing list