1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-07-12 03:49:57 +02:00
dinglehopper/README-DEV.md

588 B

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=dinglehopper --cov-report=html

Static code analysis:

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