Explorar o código

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 %!s(int64=5) %!d(string=hai) anos
pai
achega
3f6dc3ba53
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  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