You must have the psql
CLI installed locally and have the docker-compose running.
SERVER=node make reset-database
Both of these test suites are run in CI for every PR, in a matrix setting that uses all of the available backend implementations.
The individual backend services' APIs are tested using hurl.
Tests are defined in tests/api/
, and best run using docker-compose:
docker compose run integration-tests
The tests are split into basic
and conditions
tests. Only the node
server implementation currently supports conditions.
To run the tests with the conditions tests, run:
HURL_SKIP_CONDITIONS=false docker compose run integration-tests
The end-to-end tests use playwright, and expect to find a running client/react instance, connected
to the backend services, on http://127.0.0.1:3000.
The tests are defined in tests/e2e/tests/tickets.spec.ts
.
You can run them manually via
npm ci
npx playwright test
in the tests/e2e/ directory.
Please note that the test cases expect a certain number of tickets in the lists. When creating new tickets, those assertions are often broken in local setups.
To debug the UI tests use
npx playwright test --ui