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>
16 lines
507 B
Bash
Executable file
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 "$@"
|