From 32937a4bb869d612026fe125b233ee13084c1bcf Mon Sep 17 00:00:00 2001 From: tanvika Date: Sat, 31 Jan 2026 16:45:33 +0530 Subject: [PATCH] chores: integrate Cypress tests into Makefile --- Makefile | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index fa11162e..6fa9ef16 100644 --- a/Makefile +++ b/Makefile @@ -41,16 +41,28 @@ dev-flask-docker: e2e: yarn build - [ -d "./venv" ] && . ./venv/bin/activate &&\ + [-d "./venv" ] && . ./venv/bin/activate &&\ export FLASK_APP="$(CURDIR)/cre.py" &&\ export FLASK_CONFIG=development &&\ export INSECURE_REQUESTS=1 &&\ flask run & sleep 5 - yarn test:e2e - sleep 20 - killall yarn - killall flask + yarn cypress run + killall flask || true + killall yarn || true + +.PHONY: cypress cypress-open cypress-run install cypress + +cypress-open: +yarn cypress open + +cypress-run: + yarn cypress run + +cypress: cypress-run + +install-cypress: + yarn cypress install test: [ -d "./venv" ] && . ./venv/bin/activate &&\ @@ -74,7 +86,7 @@ install-python: virtualenv -p python3 venv . ./venv/bin/activate &&\ make install-deps-python &&\ - playwright install + yarn install install-typescript: yarn add webpack && cd application/frontend && yarn build