MIRAGE: LLMs Can Replace Real Microservices in Integration Tests with 99% Fidelity — No Mocks Required

Available in: 中文
2026-04-07T22:45:46.165Z·1 min read
Traditional microservice testing requires complex mock setups. MIRAGE uses LLMs to simulate dependent services at runtime with 99% fidelity — no pre-generated mocks needed.

Traditional microservice testing requires complex mock setups. MIRAGE uses LLMs to simulate dependent services at runtime with 99% fidelity — no pre-generated mocks needed.

The Problem

Testing microservices that depend on other services is hard:

MIRAGE's Approach

Instead of pre-generating mocks, MIRAGE uses an LLM at runtime to answer each dependency request as it arrives:

  1. Reads dependency source code, caller code, and production traces
  2. Simulates dependency behavior on demand
  3. Maintains cross-request state throughout the test scenario

Results

MetricMIRAGERecord-Replay
Status code fidelity99% (109/110)62%
Response shape fidelity99%16%
End-to-end pass/fail match8/8 scenarios

Tested Systems

Key Insight

"Dependency source code is often sufficient for high-fidelity runtime simulation, even without production traces."

Why It Matters

↗ Original source · 2026-04-07T00:00:00.000Z
← Previous: Bipartisan Calls to Remove Trump From Office Grow Over Iran 'Genocide' ThreatNext: StatsClaw: Multi-Agent Claude Code Architecture for Building Reliable Statistical Software →
Comments0