Closed peteyb closed 6 years ago
I've got the exact same issue, BUMP!
I have just this week worked around this issue by changing my settings file to this:
COVERAGE_EXCLUDES = (
'main.migrations',
'main.tests',
'api.migrations',
'api.tests'
)
and to remove the --coverage-exclude
from the command as the above is now in place
When running the django-jenkins command with COVERAGE_EXCLUDES_FOLDERS set the coverage.xml report still contains files within the excluded directory.
Running Python 3.6 and Django 2.0
python manage.py jenkins --enable-coverage --settings=myapp.settings_tests --coverage-exclude=COVERAGE_EXCLUDES_FOLDERS
Snippet from coverage.xml