0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/bin/frontend-test-runner
Tim Glaser 88e20220d1
Update test runner (#1952)
* Remove cypress from package.json

* Update test runner

* correct dommand

* Use npx
2020-10-21 11:42:17 +02:00

10 lines
470 B
Bash
Executable File

#!/bin/bash
set -e
dropdb --if-exists posthog_e2e_test
createdb posthog_e2e_test
DEBUG=1 DATABASE_URL=postgres://localhost:5432/posthog_e2e_test python manage.py migrate
DATABASE_URL=postgres://localhost:5432/posthog_e2e_test celery -A posthog worker -B --scheduler redbeat.RedBeatScheduler &
./bin/start-frontend &
CYPRESS_BASE_URL=http://localhost:8080 npx cypress open &
DEBUG=1 DATABASE_URL=postgres://localhost:5432/posthog_e2e_test python manage.py runserver 8080