testing-strategy

Installation
SKILL.md

Testing Strategy for AI Agents

Unit Testing

  • Test each @tool function independently with mocked dependencies
  • Test hook middleware (before/after invoke callbacks)
  • Test memory backend operations (create_event, retrieve_records)
  • Test session ID generation and namespace construction
  • Use pytest fixtures for memory/tool mocking

Integration Testing

  • Test agent end-to-end with real model but mocked tools
  • Test memory round-trip: write → extract → retrieve
  • Test Slack handler → AgentCore invoke → response pipeline
  • Test session isolation (two users, verify no data leak)
  • Test cold start and lazy initialization
Installs
2
GitHub Stars
21
First Seen
Jun 10, 2026
testing-strategy — aws-samples/sample-agent-greenhouse