-
Notifications
You must be signed in to change notification settings - Fork 0
Running Tests
All ADEPT tests are invoked through Makefile targets. This ensures consistent execution environments, proper network configuration, and reproducible results across development machines and CI.
Before running tests, ensure:
-
Services are running -- execute
make startto bring up the full stack. -
Credentials are synced -- run
make sync-credentialsto copy service secrets to the test credential directory. - Docker is available -- all tests execute inside containers.
make start
make sync-credentials
docker ps --format "table {{.Names}}\t{{.Status}}" | head -10| Target | Scope | Duration |
|---|---|---|
make validate |
Full E2E suite | 5-15 min |
make validate-unit-all |
All unit tests with coverage | 1-3 min |
make validate-unit-pkg |
Platform package unit tests | 30-60s |
make validate-unit-sdk |
SDK unit tests | 15-30s |
make validate-response-api-tool-calls |
Response API streaming | 30-60s |
make validate-service-health |
Service credentials and discovery | 15-30s |
make validate-registry |
Gateway registry CRUD | 10-20s |
make validate-multi-agent |
Multi-agent orchestration | 60-120s |
make validate-cli-all |
All CLI validation tests | 30-60s |
make validate-unit-contract-tests |
Contract test suite | 10-20s |
make validate-credentials |
Service credential validation | 5-10s |
To run a single test file directly:
docker run --rm \
--network=adept_application_network \
--network=adept_frontend_network \
-v "$(pwd)/src":/app/src:ro \
-v "$(pwd)/tests":/app/tests:ro \
-e AGENT_GATEWAY_URL=http://agent_gateway:8081/v1 \
-e KEYCLOAK_URL=http://keycloak:8180 \
agentic-framework-deps-base \
/app/.venv/bin/pytest tests/e2e/test_example.py -v -sDual-network requirement: Test containers must connect to both
adept_application_network(internal services) andadept_frontend_network(reverse proxy). The Makefile handles this automatically.
All test invocations should be wrapped with nohup and directed to timestamped log files:
mkdir -p logs
nohup make validate-unit-all > logs/unit_tests_$(date +%Y%m%d_%H%M%S).log 2>&1 &| Symptom | Cause | Fix |
|---|---|---|
401 Unauthorized in tests |
Stale credentials | make sync-credentials |
Connection refused |
Services not running | make start |
Network not found |
Stack never started |
make start (creates networks) |
Permission denied on source mount |
UID mismatch | Ensure :ro on volume mounts |
| Tests hang indefinitely | Missing -s flag for interactive tests |
Add -s to pytest args |
Never run tests on the host: Always use Docker containers for test execution. Host-based
pytestinvocations may use incorrect Python versions, missing dependencies, or wrong network paths.
Getting Started
Architecture
- Overview
- MCP Tool System
- Slurm HPC Integration
- Multi-Agent Orchestration
- A2A Federation
- Security Model
Deployment
User Guides
Developer Tools
CI/CD
Testing
Contributing
Reference