mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
b37c675903
* Run E2E tests without celery I spent ~hour today figuring out why a task was not executing, restarting frontend test runner each time. By not running celery in test and forcing all things to evaluate eagerly we can avoid that pain * Remove a now always-passing test
10 lines
355 B
Bash
Executable File
10 lines
355 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
|
|
./bin/start-frontend &
|
|
CYPRESS_BASE_URL=http://localhost:8080 npx cypress open &
|
|
DEBUG=1 TEST=1 DATABASE_URL=postgres://localhost:5432/posthog_e2e_test python manage.py runserver 8080
|