SuperSeller3000/bin/test-integration
Simon Kuehn cba8ebcf5e feat: Frappe customer integration tests + FrappeHttpClient get/delete
Adds GET and DELETE methods to FrappeHttpClient. Integration tests cover
create, find, not-found (wrong name), and delete against the live staging
ERPNext instance. Run with: bin/test-integration

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 14:47:20 +00:00

16 lines
507 B
Bash
Executable file

#!/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 "$@"