13 lines
328 B
Bash
Executable File
13 lines
328 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Setup Database
|
|
echo "Setting up test database (applying migrations)..."
|
|
# Concatenate all migrations and setup script
|
|
cat migrations/*.sql tests/integration/setup_db.sql | podman exec -i madbase_db psql -U postgres -d postgres
|
|
|
|
# Run Tests
|
|
echo "Running integration tests..."
|
|
cd tests/integration
|
|
npm test
|