Issue #6 new

COVERAGE_MODULE_EXCLUDES doesn`t seem to work

Italo Maia
created an issue

Well, django_coverage is analysing django packages and other packages even if i tell it to analyse a single app.

Example output of this behavior: /lib/python2.6/site-packages/django/utils/tree 61 32 48% 8-18, 34-55, 65-71, 77-83, 91, 97, 101-120, 129-132, 140

Comments (3)

  1. Rafael Sierra

    It's happening here too. (python 2.7, ubuntu 11.10)

    I'm using django_coverage inside a virtualenv installed by pip install django_coverage. When I run manage.py test (or test_coverage) it prints information about simplejson and yaml, like this:

    /usr/share/pyshared/simplejson/encoder      269    240    11%   6-104, 164, 168-169, 171, 174-194, 204-212, 218, 222-224, 237, 241, 243-246, 254-268, 279, 289-503
    /usr/share/pyshared/yaml/__init__           126     87    31%   16-17, 23-28, 34-39, 46-50, 57-62, 69-73, 80-85, 93, 101, 110-123, 134-154, 161, 173-195, 202, 210, 218, 228-229, 238-239, 247, 256, 265, 274, 283-284, 305, 312
    

    It's showing not only 2 lines, but near 20 (2 for simplejson and the others for yaml).

    I don't have anything diferent from django and django_coverage installed, this is what returns from pip freeze (most are dependencies):

    $ pip freeze
    Cheetah==2.4.4
    Django==1.3.1
    GnuPGInterface==0.3.2
    Landscape-Client==11.07.1.1
    M2Crypto==0.20.1
    PAM==0.4.2
    PyYAML==3.10
    Twisted-Core==11.0.0
    Twisted-Web==11.0.0
    apt-xapian-index==0.44
    boto==2.0
    chardet==2.0.1
    cloud-init==0.6.1
    command-not-found==0.2.44
    configobj==4.7.2
    coverage==3.5.1
    distribute==0.6.19
    django-coverage==1.2.2
    euca2ools==2.0.0
    httplib2==0.7.1
    keyring==0.6.2
    launchpadlib==1.9.8
    lazr.restfulclient==0.11.2
    lazr.uri==1.0.2
    oauth==1.0.1
    paramiko==1.7.7.1
    pexpect==2.3
    pyOpenSSL==0.12
    pycrypto==2.3
    pycurl==7.19.0
    pyserial==2.5
    python-apt==0.8.0ubuntu9
    python-debian==0.1.20ubuntu2
    simplejson==2.1.6
    smart==1.4
    ufw==0.30.1-2ubuntu1
    unattended-upgrades==0.1
    virtualenv==1.6.4
    wadllib==1.2.0
    wsgiref==0.1.2
    zope.interface==3.6.1
    
  2. Log in to comment