This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 77ae2e1  allow users to set port for cypress runs (#16533)
77ae2e1 is described below

commit 77ae2e1826618bab8ff65ec10a03ca6668df887e
Author: Hugh A. Miles II <[email protected]>
AuthorDate: Wed Sep 22 11:24:56 2021 -0400

    allow users to set port for cypress runs (#16533)
---
 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

Reply via email to