Skip to content
Bugwise
Menu

Contract testing

Checking that two services keep to their agreed API contract: fields, types and status codes.

Definition

When the app and the server are built by different teams, a contract test catches changes like a renamed field before they break the app.

In practice

The server renames 'price' to 'amount', and the contract test fails before the mobile app shows empty prices.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.