SuperSeller3000/bin/test-integration

17 lines
507 B
Text
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
# Load .env.local secrets and run integration tests inside the app container.
if [ -f "$(dirname "$0")/../.env.local" ]; then
set -a
# shellcheck disable=SC1091
source "$(dirname "$0")/../.env.local"
set +a
fi
docker compose exec \
-e FRAPPE_ERP_BASE_URL="${FRAPPE_ERP_BASE_URL:-}" \
-e FRAPPE_ERP_API_KEY="${FRAPPE_ERP_API_KEY:-}" \
-e FRAPPE_ERP_API_SECRET="${FRAPPE_ERP_API_SECRET:-}" \
app php vendor/bin/phpunit tests/Integration/ --testdox "$@"