mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
allow users to set port for cypress runs (#16533)
This commit is contained in:
10
Makefile
10
Makefile
@@ -66,7 +66,7 @@ venv:
|
||||
test -d venv || ${PYTHON} -m venv venv # setup a python3 virtualenv
|
||||
. venv/bin/activate
|
||||
|
||||
make activate:
|
||||
activate:
|
||||
source venv/bin/activate
|
||||
|
||||
pre-commit:
|
||||
@@ -90,3 +90,11 @@ flask-app:
|
||||
|
||||
node-app:
|
||||
cd superset-frontend; npm run dev-server
|
||||
|
||||
build-cypress:
|
||||
cd superset-frontend; npm run build-instrumented
|
||||
cd superset-frontend/cypress-base; npm install
|
||||
|
||||
open-cypress:
|
||||
if ! [ $(port) ]; then cd superset-frontend/cypress-base; CYPRESS_BASE_URL=http://localhost:9000 npm run cypress open; fi
|
||||
cd superset-frontend/cypress-base; CYPRESS_BASE_URL=http://localhost:$(port) npm run cypress open
|
||||
|
||||
Reference in New Issue
Block a user