Skip to content
Snippets Groups Projects
Commit afd81fc7 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Need to install pytest-cov (in addition to coverage). Pytest has problems

reading options from setup.cfg, but seems to like pytest.ini.
parent 9a99c71d
No related branches found
No related tags found
No related merge requests found
...@@ -30,8 +30,8 @@ The HTML documentation will be generated and saved in the `doc/html/` directory. ...@@ -30,8 +30,8 @@ The HTML documentation will be generated and saved in the `doc/html/` directory.
Tests Tests
----- -----
To run the tests, install `pytest` and `coverage`, and then run: To run the tests, install `pytest` and `pytest-cov`, and then run:
python setup.py test --addopts="-v --niters=50 --cov=fsl --cov-report=html" python setup.py test
A code coverage report will be generated in `htmlcov/`. A code coverage report will be generated in `htmlcov/`.
[pytest]
testpaths = tests
addopts = -v --niters=50 --cov=fsl --cov-report=html
[aliases] [aliases]
test=pytest test=pytest
\ No newline at end of file
...@@ -98,7 +98,7 @@ setup( ...@@ -98,7 +98,7 @@ setup(
install_requires=install_requires, install_requires=install_requires,
setup_requires=['pytest-runner'], setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-runner'], tests_require=['pytest', 'pytest-cov', 'pytest-runner'],
test_suite='tests', test_suite='tests',
cmdclass={'doc' : doc}, cmdclass={'doc' : doc},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment