Vincent Hennig & Anupam Krishnamurthy

Contract Testing - How do you tame an external API that constantly breaks your tests

A partner API update paralyzed our pipeline for 172 hours. Here's the contract testing strategy that cut our recovery time to just four.

Contract Testing - How do you tame an external API that constantly breaks your tests
#1about 4 minutes

How a fragile external API broke our tests

A major backend API update broke all frontend tests, leading to 172 hours of developer time spent on fixes.

#2about 5 minutes

Validating API contracts at three distinct levels

Implement robust API tests by validating status codes, response schemas, and specific required data for frontend features.

#3about 4 minutes

Enforcing contracts by treating code as the contract

Replace static documentation with executable contract tests and share them with your partner team to improve debugging and collaboration.

#4about 9 minutes

Simulating contracts to decouple from external APIs

Use a mock server to increase development stability, improve test reliability, and allow frontend work to proceed even when the real API is down.

#5about 1 minute

A summary of the three-step contract testing process

A recap of the validate, enforce, and simulate strategy for managing dependencies on external APIs.

#6about 3 minutes

Q&A on mocking tools and handling API versioning

The speakers answer audience questions about using WireMock versus Karate for mocking, handling API versioning, and managing credentials.

Related jobs
Jobs that call for the skills explored in this talk.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
KP
Kate Passby
How to create a test plan for software testing
When creating new software, it's important to put it through rigorous testing. This improves IT security and helps to identify any problems. As software developers, the aim is to make the process of testing as painless as possible. This ensures the s...
How to create a test plan for software testing
BB
Benedikt Bischof
How we Build The Software of Tomorrow
Welcome to this issue of the WeAreDevelopers Live Talk series. This article recaps an interesting talk by Thomas Dohmke who introduced us to the future of AI – coding.This is how Thomas describes himself:I am the CEO of GitHub and drive the company’s...
How we Build The Software of Tomorrow

From learning to earning

Jobs that call for the skills explored in this talk.