with some tests
This commit is contained in:
parent
a764c92a0b
commit
0995e1cc77
18 changed files with 3020 additions and 16 deletions
31
scripts/e2e.sh
Executable file
31
scripts/e2e.sh
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
# Kill any existing backend
|
||||
pkill -f "uvicorn main:app" 2>/dev/null || true
|
||||
sleep 1
|
||||
|
||||
# Start db
|
||||
docker compose up -d db
|
||||
|
||||
# Start backend
|
||||
cd backend
|
||||
uv run uvicorn main:app --port 8000 &
|
||||
PID=$!
|
||||
cd ..
|
||||
|
||||
# Wait for backend
|
||||
sleep 2
|
||||
|
||||
# Run tests
|
||||
cd frontend
|
||||
npm run test:e2e
|
||||
EXIT_CODE=$?
|
||||
|
||||
# Cleanup
|
||||
kill $PID 2>/dev/null || true
|
||||
|
||||
exit $EXIT_CODE
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue