Getting Branch Coverage In Nose

Just a few days ago Ned Batchelder announced experimental branch coverage support in coverage.py. I have been waiting a long time for this. I had a few false starts myself so I know how much time Ned put into it. Thanks Ned! I changed the coverage plugin included with nose to interact better with coverage.py.
  • I added a --cover-branches option to make coverage.py generate branch coverage statistics.
  • I changed the existing --cover-html option to use coverage.py's built-in HTML report generator. Why have old, outdated logic hanging around?
You can find my changes here: http://code.google.com/r/dstanekcom-python-nose/source/list.
blog comments powered by Disqus