Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 591 Bytes

README-DEV.md

File metadata and controls

37 lines (32 loc) · 591 Bytes

Testing

Use pytest to run the tests in the tests directory:

virtualenv -p /usr/bin/python3 venv
. venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
pytest

Test running examples

Only unit tests:

pytest -m "not integration"

Only integration tests:

pytest -m integration

All tests:

pytest

All tests with code coverage:

pytest --cov=qurator --cov-report=html

Static code analysis:

pytest -k "not test" --flake8
pytest -k "not test" --mypy