Skip to main content
Integration Tests page with assembled chains

What Integration Tests Are

An integration test runs a sequence of endpoints as one workflow, with each step using data from the one before:
TestSprite identifies these handoffs and runs the chain end to end as a single test.

Where Integration Tests Live in the UI

Integration tests have their own sidebar row, Test Cases → Integration Tests, next to Endpoint Tests. From there you can:
  • Browse the chains and open any one to see its steps
  • Run all chains from the toolbar, or open a chain and rerun it on its own
  • Ask the agent to refine a chain (add a step, drop a step, change the sequence)

Why Integration Tests Matter

Endpoint tests verify each step in isolation; integration tests verify the handoffs. They catch the “individual endpoints work but the system doesn’t” bugs:

Per-Chain View

Click into an integration test to see its detail page:
An integration test detail page — its five chained steps beside the assembled code

When a Chain Fails

Chains fail in two distinguishable ways:
Integration test detail page with step list
See Endpoint Tests for how Blocked differs from Failed. UI testing has the same idea, a use case with multiple steps, but runs browser actions instead of HTTP calls. See UI Testing.

Edge Cases & Troubleshooting

Common when your API is mostly read-only or the agent had little to go on. Ask it for specific multi-step flows: “Add integration tests that exercise create → read → update → delete on /orders”.
Tell the agent the right shape: “The right order is POST /users → POST /sessions → POST /orders, not /users → /orders directly”. It fixes the chain and proposes the change.
Ask the agent to add a wait: “After the POST step, wait 250ms before the GET”.
The step has a side effect the chain didn’t account for, such as leaving a session active. Refine the step to clean up after itself, or add an explicit cleanup step: “After the GET step, DELETE the session created in step 2”.

Where to Go Next

Endpoint Tests

The single-call tests that chains are built from

API Calls

How the agent tries your endpoints before it proposes a test