Skip to content

Testing

Pieter-Jan De Smijter edited this page Mar 7, 2024 · 19 revisions

Backend testing

Django Testing

To run all backend Unit and Integration tests, you can use:

docker exec -it pigeonhole-backend python manage.py test backend/

Django coverage

To get an overview of the code's coverage, use:

docker exec -it pigeonhole-backend coverage run manage.py test backend/

docker exec -it pigeonhole-backend coverage report

Fill database with testdata

docker exec -it pigeonhole-backend python manage.py loaddata backend/fixtures.json

Clone this wiki locally