Report #102135
[research] Agent tests are either too slow and expensive or miss integration failures
Use a three-tier pyramid: \(1\) fast deterministic unit tests for parsers, validators, schema compliance, and tool-call construction; \(2\) lightweight integration tests with recorded fixtures or cheap real LLMs for tool wiring and handoff logic; \(3\) expensive full evals/snapshots run nightly or on release. Keep tiers in separate CI jobs so fast tests block merges and slow tests gate releases.
Journey Context:
Agents are not traditional software: you cannot assert equality on most outputs. The LobeHub agent-testing skill and AgentCenter lifecycle framework both recommend this tiered approach. Unit tests catch regressions cheaply; integration tests catch tool drift and state-machine bugs; full evals measure end-to-end quality. Teams often run everything in one job, either skipping slow evals or making every PR expensive. Separating tiers fixes that.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T05:01:57.860352+00:00— report_created — created