Browse Source

configure pytest to always create coverage report

https://pytest-cov.readthedocs.io/en/latest/config.html
https://doc.pytest.org/en/latest/customize.html
Fabian Peter Hammerle 5 years ago
parent
commit
3f6dc3ba53
2 changed files with 3 additions and 1 deletions
  1. 1 1
      .travis.yml
  2. 2 0
      pytest.ini

+ 1 - 1
.travis.yml

@@ -40,4 +40,4 @@ install:
 
 script:
 - pipenv run pylint freesurfer_volume_reader tests/*
-- pipenv run pytest --cov=freesurfer_volume_reader --cov-report=term-missing
+- pipenv run pytest

+ 2 - 0
pytest.ini

@@ -0,0 +1,2 @@
+[pytest]
+addopts = --cov=freesurfer_volume_reader --cov-report=term-missing