pombreda / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

Support coverage branch option #370

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The nose cover plugin used the depreciated global methods of the coverage 
module. However I would prefer it instantiates like this:

class Coverage:
  def configure:
    self.cover = coverage.coverage(auto_data=True, branch=True)

Then coverage reports will include branch coverage, which most people would 
want anyway.

Original issue reported on code.google.com by devin.ba...@gmail.com on 6 Oct 2010 at 2:56

GoogleCodeExporter commented 9 years ago
This patch add branch coverage support, it may lack some tests, but most of the 
works is done in coverage module.

P.S: It also fix some formatting (pep8)

Original comment by timothee...@gmail.com on 2 Aug 2011 at 8:45

Attachments:

GoogleCodeExporter commented 9 years ago
Branch coverage has made is way to trunk.

Original comment by timothee...@gmail.com on 8 Aug 2011 at 4:10