I have my Django project hooked up with Travis-CI and Coveralls.
The issue I'm facing is that when my data is posted to Coveralls from Travis, Coveralls seems to be taking into account all of the Django Framework and site-packages files in addition to my own app files:
The only coverage data I really care about is my app files - is there any way to only show coverage for stuff that I have written? Something like this:
My command on Travis seems like it only runs my own app tests, which seems like correct behavior. Here is my .travis.yml file:
language: python
python:
- "3.4"
# command to install dependencies
install:
- pip install -r requirements.txt --use-mirrors
- pip install coveralls coverage
# command to run tests
script:
- coverage run manage.py test
# addons
addons:
postgresql: "9.4"
after_success:
coveralls
Here is an example of one of the paths to a file that I don't want to be included in coveralls: /home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/django/utils/lru_cache.py
It seems like it has something to do with Travis' virtualenv...