Skip to content

Testing

This project uses pytest for unit tests and doctests for docstring examples.

Run all tests

uv run invoke test

Run only unit tests

uv run pytest tests/

Run only doctests

uv run pytest --doctest-modules src/

Coverage report

uv run pytest --cov=src/owi/metadatabase --cov-report=term-missing

The HTML coverage report is written to htmlcov/.