Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.33 KB

DEVELOPMENT.md

File metadata and controls

51 lines (36 loc) · 1.33 KB

Development Notes

Resetting the database

You must have the psql CLI installed locally and have the docker-compose running.

SERVER=node make reset-database

Run tests manually

Both of these test suites are run in CI for every PR, in a matrix setting that uses all of the available backend implementations.

API

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

E2E

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