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
......@@ -30,8 +30,8 @@ The HTML documentation will be generated and saved in the `doc/html/` directory.
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/`.
[pytest]
testpaths = tests
addopts = -v --niters=50 --cov=fsl --cov-report=html
[aliases]
test=pytest
\ No newline at end of file
test=pytest
......@@ -98,7 +98,7 @@ setup(
install_requires=install_requires,
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-runner'],
tests_require=['pytest', 'pytest-cov', 'pytest-runner'],
test_suite='tests',
cmdclass={'doc' : doc},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment