You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2021/08/31 22:44:31 UTC
[superset] 01/01: allow users to set port for cypress runs
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch add-cypress-cmds
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 08380c8f64c1e140946d6d969882a97a4e9a861a
Author: hughhhh <hu...@gmail.com>
AuthorDate: Tue Aug 31 15:43:19 2021 -0700
allow users to set port for cypress runs
---
Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2d32588..7593a28 100644
--- a/Makefile
+++ b/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