Skip to content

Commit

Permalink
allow users to set port for cypress runs (apache#16533)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Sep 22, 2021
1 parent 07ecc27 commit d825200
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit d825200

Please sign in to comment.