feat: Added setup for running Cypress tests in docker locally (#11207)

* Working configuration

* Fixes

* Set database volume directory. Added info in CONTRIBUTING how to avoid malformed database in tests.
This commit is contained in:
adam-stasiak-polidea
2020-12-14 17:06:19 +01:00
committed by GitHub
parent 1afe91579e
commit 6311a9ec8c
5 changed files with 55 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ x-superset-volumes: &superset-volumes
- ./superset:/app/superset
- ./superset-frontend:/app/superset-frontend
- superset_home:/app/superset_home
- ./tests:/app/tests
version: "3.7"
services:
@@ -57,6 +58,8 @@ services:
user: "root"
depends_on: *superset-depends-on
volumes: *superset-volumes
environment:
CYPRESS_CONFIG: "${CYPRESS_CONFIG}"
superset-init:
image: *superset-image
@@ -66,6 +69,8 @@ services:
depends_on: *superset-depends-on
user: "root"
volumes: *superset-volumes
environment:
CYPRESS_CONFIG: "${CYPRESS_CONFIG}"
superset-node:
image: node:12