or, if you don't worry about the environment (there's a bunch of packages needed for development only and blind install of all of them may cause issues),
pip install -r requirements-dev.txt
Execute commands
pytest
dev/run_coverage
The latter generates coverage report in the subfolder htmlcov. See htmlcov/index.html. So far, just 6% of coverage is achieved.
Besides, one issue (SegFault on matplotlib destroy) appeared on the two last tests. Even on plain reading of the file.
The test dependencies and command are also included to setup.py. But, be aware, its usage is deprecated. However, you can run also
Introduced infrastructure of testing and code coverage with intention to minimize changes in build scripts.
Usage:
install pytest and coverage, with either
pip install pytest pytest-cov pytest-benchmark coverage
or, if you don't worry about the environment (there's a bunch of packages needed for development only and blind install of all of them may cause issues),
pip install -r requirements-dev.txt
Execute commands
pytest
dev/run_coverage
The latter generates coverage report in the subfolder htmlcov. See htmlcov/index.html. So far, just 6% of coverage is achieved. Besides, one issue (SegFault on matplotlib destroy) appeared on the two last tests. Even on plain reading of the file.
The test dependencies and command are also included to setup.py. But, be aware, its usage is deprecated. However, you can run also
python setup.py test