Integration tests require ArcGIS credentials and the api feature flag.
Copy the example file:
cp .env.example .envEdit .env and add either:
Option A: API Key (recommended for read-only testing):
ARCGIS_API_KEY=your_api_key_hereGet an API key from: https://developers.arcgis.com/dashboard
Option B: OAuth Credentials (for full read/write testing):
ARCGIS_CLIENT_ID=your_client_id_here
ARCGIS_CLIENT_SECRET=your_client_secret_hereRun all integration tests (hits live AGOL):
cargo test --features apiOr use the justfile recipe:
just test-apiRun specific test:
cargo test --features api test_public_feature_service_accessibleTests include rate_limit() calls to be polite to the ArcGIS Online API. Do not remove these delays.
All integration tests target ArcGIS Online (AGOL), not ArcGIS Enterprise.
tests/common/- Shared utilities, credential loadingtests/integration_basic.rs- Basic connectivity teststests/integration_feature_service.rs- Feature Service tests (TODO)tests/integration_geocoding.rs- Geocoding tests (TODO)
Some tests use ESRI's public sample data:
- World Cities Feature Service (read-only, no auth required)
These tests verify basic API structure without requiring credentials.