Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&\
Expand All @@ -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
Expand Down