Skip to content

Commit 3251606

Browse files
committed
improve
1 parent c8f61c1 commit 3251606

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

tests/e2e-playwright/Makefile

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,10 @@ SLEEPERS_INPUT_FILE := .e2e-playwright-sleepers-env.txt
139139
S4L_INPUT_FILE := .e2e-playwright-sim4life-env.txt
140140
JUPYTER_LAB_INPUT_FILE := .e2e-playwright-jupyterlab-env.txt
141141
CLASSIC_TIP_INPUT_FILE := .e2e-playwright-classictip-env.txt
142+
RSM_INPUT_FILE := .e2e-playwright-rsm-env.txt
142143

143144
# Prompt the user for input and store it into variables
144-
$(SLEEPERS_INPUT_FILE) $(JUPYTER_LAB_INPUT_FILE) $(CLASSIC_TIP_INPUT_FILE) $(S4L_INPUT_FILE):
145+
$(SLEEPERS_INPUT_FILE) $(JUPYTER_LAB_INPUT_FILE) $(CLASSIC_TIP_INPUT_FILE) $(S4L_INPUT_FILE) $(RSM_INPUT_FILE):
145146
@read -p "Enter your product URL: " PRODUCT_URL; \
146147
read -p "Is the product billable [y/n]: " BILLABLE; \
147148
read -p "Is the product lite [y/n]: " IS_LITE; \
@@ -189,6 +190,20 @@ $(SLEEPERS_INPUT_FILE) $(JUPYTER_LAB_INPUT_FILE) $(CLASSIC_TIP_INPUT_FILE) $(S4L
189190
elif [ "$@" = "$(SLEEPERS_INPUT_FILE)" ]; then \
190191
read -p "Enter the number of sleepers: " NUM_SLEEPERS; \
191192
echo "--num-sleepers=$$NUM_SLEEPERS" >> $@; \
193+
elif [ "$@" = "$(RSM_INPUT_FILE)" ]; then \
194+
read -p "Enter the service key (default to mmux-vite-app-sumo-write): " SERVICE_KEY; \
195+
if [ -z "$$SERVICE_KEY" ]; then \
196+
echo "No service key specified, using default."; \
197+
echo "--service-key=mmux-vite-app-sumo-write" >> $@; \
198+
else \
199+
echo "--service-key=$$SERVICE_KEY" >> $@; \
200+
fi; \
201+
read -p "Enter the service version (default to latest): " SERVICE_VERSION; \
202+
if [ -z "$$SERVICE_VERSION" ]; then \
203+
echo "No service version specified, using default."; \
204+
else \
205+
echo "--service-version=$$SERVICE_VERSION" >> $@; \
206+
fi; \
192207
fi
193208

194209
# Run the tests
@@ -202,7 +217,10 @@ test-jupyterlab-anywhere: _check_venv_active $(JUPYTER_LAB_INPUT_FILE) ## run ju
202217
@$(call run_test, $(JUPYTER_LAB_INPUT_FILE), tests/jupyterlabs/test_jupyterlab.py)
203218

204219
test-tip-anywhere: _check_venv_active $(CLASSIC_TIP_INPUT_FILE) ## run classic tip test and cache settings
205-
$(call run_test, $(CLASSIC_TIP_INPUT_FILE), tests/tip/test_ti_plan.py)
220+
@$(call run_test, $(CLASSIC_TIP_INPUT_FILE), tests/tip/test_ti_plan.py)
221+
222+
test-response-surface-modeling-anywhere: _check_venv_active $(RSM_INPUT_FILE) ## run response surface modeling test and cache settings
223+
@$(call run_test, $(RSM_INPUT_FILE), tests/metamodeling/test_response_surface_modeling.py)
206224

207225
# Define the common test running function
208226
define run_test

0 commit comments

Comments
 (0)