Create hurl tests for task creation and retrieval

This commit is contained in:
Drew 2025-08-24 10:16:26 -07:00
parent 82d524a62f
commit 20ee812393
2 changed files with 132 additions and 0 deletions

View file

@ -33,3 +33,18 @@ migrate:
migrate-revert:
sqlx migrate revert
test-integration:
#!/usr/bin/env bash
set -e
cargo run &
SERVER_PID=$!
trap 'echo "Stopping server..."; kill -TERM $SERVER_PID 2>/dev/null || true; wait $SERVER_PID 2>/dev/null || true' EXIT
echo "Waiting for server to start..."
printf 'GET http://localhost:3000/health\nHTTP 200' | hurl --retry 30 > /dev/null
echo "Running integration tests..."
hurl --test --variable host=http://localhost:3000 tests/api/*.hurl