Testing strategy

From aws-samples/sample-agent-greenhouse · View interactive version

Testing strategy is an AI agent skill from the GitHub repository aws-samples/sample-agent-greenhouse. Help design and implement test strategies for AI agents — unit tests, integration tests, agent evaluation, memory testing, tool mocking. Use when the user asks about testing agents.

How to use this skill

Skill file

Testing Strategy for AI Agents

Unit Testing

Integration Testing

Agent Evaluation

Memory Testing

Mocking Patterns

# Mock AgentCore Memory
@patch("platform_agent.memory.AgentCoreMemory")
def test_memory_save(mock_memory):
    mock_memory.add_assistant_message.return_value = "evt-123"
    # ... test save_memory tool

# Mock Bedrock model for agent tests
@patch("strands.models.bedrock.BedrockModel")
def test_agent_response(mock_model):
    mock_model.return_value = mock_streaming_response("Hello!")
    # ... test agent invocation
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.