Skip to content

Commit

Permalink
Adding coverage metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Aug 3, 2017
1 parent 1c8f200 commit cd91661
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ python:
- "3.6"

before_install:
- "pip install pytest pytest-cov"
- "pip install pytest"
- "pip install coveralls"

install:
- "pip install -r requirements.txt"
- "pip install ."
script:
- "python setup.py test"
- "cd docs ; make doctest"
- "coverage run --source stylo setup.py test"
- "coverage report"
- "cd docs ; make doctest ; cd .."

after_success:
- "coveralls"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
test = pytest

[tool:pytest]
addopts = --verbose --cov=stylo
addopts = --verbose
python_files = tests/*.py

0 comments on commit cd91661

Please sign in to comment.