December 2026 Summaries
2 posts from WireMock
Filter
Month:
Year:
Post Summaries
Back to Blog
The post describes a CI approach for regression-testing nondeterministic AI agents by running each test case repeatedly against an isolated, resettable simulated API and judging results from recorded API requests rather than the agent’s claims. For each case, the job compares the pull request’s pass rate with a baseline built from many runs on the main branch, using run counts and thresholds chosen to detect meaningful declines while balancing false alarms and model-call costs. It also fails the build if any run produces a prohibited outcome, such as opening duplicate disputes, and flags malformed or unmatched requests. A fresh simulation for each job and consistent starting data help ensure that changes in the agent—not leftover state or real API side effects—account for differences in results; saved request logs then give reviewers evidence to investigate failures.
Dec 03, 2026
1,848 words in the original blog post.
Stateful API simulation lets an agent test complete workflows against a simulated service that remembers changes between calls, unlike static mocks that return predetermined responses regardless of prior actions. This matters because agents choose later requests based on earlier responses, so fixed data can hide duplicate creation, misrepresent read-backs, prevent status-dependent branches from being tested, or fail to reflect work from an interrupted run. The article compares hand-written mocks, coding-agent-generated mock servers, and hosted simulations, then describes using WireMock Cloud and a coding agent to model PayPal invoice creation, search, status changes, deletion, cancellation, and errors. Tests begin from reset, seeded states representing different workflow branches, run the agent, and inspect the resulting records. Effective setup requires choosing which endpoints need state, specifying the API rules the workflow depends on, and testing relevant starting conditions; additional edge cases can be added as needed.
Dec 01, 2026
1,870 words in the original blog post.