Choose a failure to exercise
Put errors, slow responses and rejected requests into the cases your tests already cover.
Explore failure injectionAI-Native CI/CD · API testing in CI
Mock the APIs your tests call in CI with reviewed responses built from real API traffic, and add controlled failures. See how an AI-assisted patch handles the cases that matter before you approve it.
14-day Pro trial. Runs on Docker Compose in your environment. See pricing
papertrail storefront
Private repositoryPull requests #128
fix/refund-dedupemain
Failed · 2 credits recorded
expect(credits).toHaveLength(1)evt_refund_1042delivery_02The delivery ID changed. The original patch adds a second credit.
handle-refund.ts− const key = delivery.id+ const key = refund.eventIdWhat the check protects
A happy-path test sends one event. This check sends the same refund again with a different delivery ID. The first patch processes both deliveries. The guarded patch recognizes the logical event and records one credit.
From a reproduction to a required check
Gostly supplies the API dependency environment. Your runner executes the tests, and your team chooses which checks must pass.
Record permitted traffic or author the response your test needs. Review the fixture and confirm which requests it covers.
Start the supported stack in your runner, load the reviewed library and route the client through Gostly. Let your tests exercise the same case against the new code.
Assert the outcome customers depend on and confirm which response the client received. Keep separate live checks for the provider behavior that needs them.
Flaky tests · Continuous integration testing
An integration test turns flaky when the API behind it changes between runs: a sandbox another team reset, a rate limit another pipeline used up, a vendor environment that is down for an hour. Serve those calls from a reviewed library and the test meets the same API responses on every run.
Gostly gives tests around AI-assisted code a controlled API environment. It does not write your delivery workflow or approve a change. Your test runner and release decisions stay yours.
Use a runner that supports the complete self-hosted Gostly stack and its normal dependencies. Bring a reviewed response library, matching service configuration and your existing tests.
In MOCK mode Gostly answers from the reviewed library and does not call the upstream API, so the run does not wait on the sandbox.
It removes one cause: an API dependency that answers differently from one run to the next. Tests that fail on timing, test order or UI rendering have other causes.
Make expected status, body and response origin part of acceptance. Your suite should flag missing coverage instead of treating an unrelated response as success.
Keep live checks for current contracts, credentials and behavior that needs the provider. Reviewed matches cover selected API questions; they do not make every connection local.
Every new account starts a 14-day Pro trial automatically, with no credit card required. A subscription is required after the trial.
Resources
Put errors, slow responses and rejected requests into the cases your tests already cover.
Explore failure injectionFollow a worked case from the failing assertion to the corrected app behavior.
Work through the guideKeep the API situation behind a fix available for the next change.
Explore the solutionStart with one API dependency and the assertion your next release should preserve.