pip install coverage
coverage run --source=path/to/your/source/files -m unittest discover tests
coverage html
language: python
python:
- "3.6"
install:
- pip install -r requirements.txt
- pip install coverage
script:
- coverage run --source=path/to/your/source/files -m unittest discover tests
after_success:
- coverage html