[TIP] Coverage.py 3.2b1: Branch coverage]
Victoria G. Laidler
laidler at stsci.edu
Wed Nov 11 07:33:07 PST 2009
Ned Batchelder wrote:
> I'm pleased to announce coverage.py v3.2b1, now with branch coverage!
This looks great, Ned - thanks!
I notice from the announcement that:
> The only way currently to initiate branch coverage is with the
> command-line interface. In particular, the nose coverage plugin has no
> way to use it.
Do you plan to update the plugin at some point so that it can use the
> Details are on my blog announcement:
> I should mention that the idea for the fundamental technique here came
> from Titus at Pycon. He called it time series analysis, but I'm not
> that smart, so I just think of it as tracking what follows what.
> Basically, instead of tracking a set of line numbers for each file, we
> track a set of pairs of line numbers, so every transition from line to
> line is tracked. Then static analysis of the byte code shows which
> transitions are possible. The difference is the missing branches.
> Give it a spin, and let me know what you think.
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
More information about the testing-in-python