diff --git a/.travis.yml b/.travis.yml index bc835bc3..573e764c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/setup.cfg b/setup.cfg index 8dfb3bc0..f5e8c37b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,5 +2,5 @@ test = pytest [tool:pytest] -addopts = --verbose --cov=stylo +addopts = --verbose python_files = tests/*.py