Overview
Aden provides built-in testing capabilities to validate your agents before deployment. Tests verify:- Goal completion - Does the agent achieve its objectives?
- Edge cases - How does the agent handle unusual inputs?
- Error handling - Does the agent recover from failures gracefully?
- Human-in-the-loop - Do intervention points work correctly?
Quick Start
Use the Claude Code testing skill:Test Structure
Tests live alongside your agent:Writing Tests
Basic Agent Test
Testing with Mock LLM
Control LLM responses for deterministic tests:Testing Edge Paths
Verify specific edge conditions:Testing Human-in-the-Loop
Simulate human responses:Testing Timeouts
Verify timeout behavior:Test Fixtures
Input Fixtures
Parametrized Tests
Goal-Based Testing
Test against the agent’s defined goals:Running Tests
All Tests
Specific Test
With Coverage
Test Configuration
Configure test behavior inpyproject.toml:
CI Integration
Example GitHub Actions workflow:Best Practices
Mock External Calls
Use mocks for LLMs and APIs to ensure deterministic tests
Test Edge Cases
Include empty inputs, long inputs, and malformed data
Test All Paths
Verify each edge in your graph is exercised by tests
Test HITL Flows
Simulate approval, rejection, and timeout scenarios