Testing and Coverage#

The project uses pytest for unit testing. Tests are located in the app/tests/ directory.

Install Test Dependencies#

cd app
uv sync --group dev

Run All Tests#

uv run pytest

Run a Specific Test File#

Adjust the file path shown below to run other specific test files (see the app/tests/ directory for available test files). The following command runs the tests defined in the tests/test_frame_registry.py file:

uv run pytest tests/test_frame_registry.py

Run Tests with Coverage Report#

uv run pytest --cov=backend --cov=main --cov-report=term-missing

Generate an HTML Coverage Report#

uv run pytest --cov=backend --cov=main --cov-report=html

Open htmlcov/index.html in a browser to view the detailed coverage report.