The dSock end-to-end tests, written in Go (using testing
).
User/sessions are related to the current test running. This is to prevent test collisions.
The user is the name of the test file.
The sessions is the name of the test. If no session is set, add the name in the user after a _
.
Run task tests:e2e
to run the E2E tests.
Tests are ran inside Docker Compose, using an additional configuration (docker-compose.e2e.yml
).
This adds the e2e
service on top of the normal development services.
The script also runs docker-compose down
before running to stop all services, which clears Redis' storage.
This ensures that all tests are ran on a clean database. Redis isn't configured to persist in development.