nose-devs/nose — Issue #109: Fails to properly parse NOSE_COVER_PACKAGE environment variable
Author: jpellerin
Created: 2011-12-14 15:59:35+00:00
State: open

"""
import nose
import os

os.environ['NOSE_WITH_COVERAGE'] = '1'
os.environ['NOSE_COVER_PACKAGE'] = 'my.package'

nose.run()
"""

With this setup the coverage plugin reports for all packages in the system,
not only for my.package

After a briefly debug session i think that at nose/plugins/cover.py, line 124:
for pkgs in [tolist(x) for x in options.cover_packages]:
self.coverPackages.extends(pkgs)

must be replaced with:
for pkgs in tolist(options.cover_packages):
self.coverPackages.append(pkgs)

Google Code Info:
Issue #: 339
Author: snmg...@gmail.com
Created On: 2010-05-23T00:46:55.000Z
Closed On: