Skip to main content

Running tests

Backend

Run the following command in the server/ folder inside the docker container:

pytest

Note: Make sure a database is accessibe by django so it can run the integration tests (to commit transactions and rollback all the changes).

Test coverage report

pip install coverage
coverage run -m pytest
coverage report --show-missing

Frontend

Run the following command in the app/ folder:

npm run test