You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,21 @@ The project includes end-to-end tests for the backend API using Cypress. These t
117
117
```
118
118
*(Note: Ensure the `CYPRESS_BASE_URL` in `compose.test.yml` or your local Cypress config points to the correct backend URL for testing, typically `http://backend:8080` when run via compose, or `http://localhost:8080` if backend is run directly on host for local Cypress development).*
119
119
120
+
### Backend Go Tests
121
+
122
+
To run the backend's Go tests, you can use the `backend-tests` profile in the `compose.test.yml` file. This will run the tests in a containerized environment.
123
+
124
+
```bash
125
+
docker compose -f compose.test.yml --profile backend-tests up --build
126
+
```
127
+
128
+
Alternatively, you can run the tests directly on your host machine if you have Go installed:
129
+
130
+
```bash
131
+
cd backend
132
+
PG_ADMIN_DSN="postgres://test_admin:test_password@localhost:5432/test_admin_db?sslmode=disable" go test ./...
0 commit comments