Unit tests are written with pgTAP and are stored in this directory.
To run the tests:
- start the dbms in Docker container
- execute
scripts/run_tests.sh
to run once, orscripts/watch_tests.sh
to run tests whenever files intests/
change For example, assuming the service is run withdocker compose
docker compose exec -u postgres -w /opt/edr-dme-db dbms ./scripts/run_tests.sh
docker compose exec -u postgres -w /opt/edr-dme-db dbms ./scripts/watch_tests.sh