feat: add testing setup in backend

This commit is contained in:
Lin, Hung-Shin committed 2023-11-17 10:59:47 +08:00
1 parent cb376caff0
commit 1f77328362
15 files changed
+92 -100

No files matched your search

+9 -3
View File
@@ -1,14 +1,17 @@
version: '3'
services:
cypress:
image: cypress/included
build:
context: .
dockerfile: tests/Dockerfile
networks:
- internal
volumes:
- ./tests:/e2e
working_dir: /e2e
- ./tests:/e2e/tests
environment:
- BASE_URL=http://app-test
- TESTING_USERNAME=alex
- TESTING_PASSWORD=Alex1234
depends_on:
- app-test
@@ -49,6 +52,9 @@ services:
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- SURVEY_URL=${SURVEY_URL}
- BUG_REPORT_URL=${BUG_REPORT_URL}
- TESTING=true
- TESTING_USERNAME=alex
- TESTING_PASSWORD=Alex1234
db-test:
image: mongo