Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aws-samples avatar

Testing Strategy

  • 2 installs
  • 21 repo stars
  • Updated July 29, 2026
  • aws-samples/sample-agent-greenhouse

testing-strategy is a testing skill that helps design unit, integration, evaluation, and memory tests for AI agents, including tool and model mocking.

About

This skill helps design and implement test strategies for AI agents. It breaks testing into unit tests for tools and hooks, integration tests for end-to-end agent runs with mocked tools, agent evaluation with golden test cases, and memory testing for short- and long-term memory isolation. A developer uses it when deciding how to test an agent's tools, memory, and guardrails. It includes Python mocking patterns for AgentCore Memory and Bedrock models.

  • Design and implement test strategies specifically for AI agents
  • Covers unit, integration, agent evaluation, and memory testing plus tool mocking
  • Includes pytest mocking patterns for AgentCore Memory and Bedrock models

Testing Strategy by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #1,683 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Jul 29, 2026 (Skillselion catalog sync)
At a glance

testing-strategy capabilities & compatibility

Capabilities
agent testing · test strategy · evaluation design
Works with
aws
Use cases
testing · orchestration · memory
From the docs

What testing-strategy says it does

Test agent end-to-end with real model but mocked tools
SKILL.md
Define golden test cases: input → expected behavior/output
SKILL.md
npx skills add https://github.com/aws-samples/sample-agent-greenhouse --skill testing-strategy

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars21
Last updatedJuly 29, 2026
Repositoryaws-samples/sample-agent-greenhouse

What it does

Design unit, integration, evaluation, and memory tests for AI agents with tool and model mocking.

Who is it for?

Planning how to unit-test tools, integration-test agent pipelines, and evaluate agent memory and guardrails.

When should I use this skill?

When the user asks about testing agents.

By the numbers

  • Covers four test categories: unit, integration, evaluation, memory

Files

SKILL.mdMarkdownGitHub ↗

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

Agent Evaluation

  • Define golden test cases: input → expected behavior/output
  • Test for: helpfulness, accuracy, safety, latency
  • Evaluate memory usage: does the agent save/recall correctly?
  • Test skill loading: does the agent pick the right skill?
  • Test guardrails: does the agent refuse harmful requests?

Memory Testing

  • Verify STM events created for each conversation turn
  • Verify LTM extraction after strategy processing
  • Test namespace isolation (actor A can't see actor B)
  • Test memory context loading on session resume
  • Test explicit save_memory / recall_memory tools

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

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.