# Contract tests for breaking API changes

> Check a proposed API change against a consumer’s expected interaction. Follow the provider verification and identify the caller affected by a mismatch.

Source: https://cueapril.com/guides/contract-tests-for-breaking-api-changes
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## Which compatibility checks distinguish an added field from a breaking field change?

Write down what the supported consumer reads and make it executable against the producer. Exercise a compatible addition and a breaking change to prove the check can distinguish them.

A provider adds an optional display name and also considers changing the amount from an integer to a string.

## Work through the decision

A strict snapshot rejects both changes, even though the existing consumer tolerates the first.

Steps and evidence for the reviewer

| Step | Evidence to keep |
| --- | --- |
| Freeze a consumer fixture | Record required fields and types. |
| Try an additive change | Verify the existing consumer still completes. |
| Try a breaking change | Capture the exact rejected field and failing revision. |

## What changes the decision

Test the supported version combinations before rollout. Coordinate a deprecation window when old and new consumers will coexist.

## Primary documentation

- [Pact guide to contract testing](https://docs.pact.io/)

By Cue April. Updated 2026-12-01.

## Related

- [Testing guides](https://cueapril.com/guides): Learn how to select regression checks, verify generated tests and read failure evidence. Use examples that connect a code change to user behaviour.
- [Developer quickstart](https://cueapril.com/guides/agentic-testing-quickstart): Connect Claude Code or Codex to Cue April, check your project is ready and test an approved GitHub pull request. Match the findings to the exact commit.
- [Risk-based testing](https://cueapril.com/guides/risk-based-testing): Build a risk-based test strategy with an impact and likelihood matrix. Use three worked examples to choose checks and document a release exception.
