Skip to main content

Who needs Contract Tests for API testing?

25-minute Talk

It doesn't always have to be contract testing. More lightweight solutions with the help of OpenAPI, Renovate and auto merging features of your code repository are also possible.

Virtual Pass session

Timetable

10:45 a.m. – 11:30 a.m. Tuesday 25th

Room

Room F2 - Track 2: Talks

API Microservices Testing Tools

Audience

Developer, Tester, Test Manager

Key-Learnings

  • Importance of API Testing
  • Methods of API Testing
  • Tools for API Testing

A comparison between OpenAPI with Renovate to Contract Tests

APIs are at the heart of modern software architectures. They connect services and are used in frontend featured applications. But as systems grow and change, APIs do the same, especially when multiple teams need to move independently. Even the smallest change in one endpoint can break critical features in independent teams and often, traditional integration testing catches it too late.

In this talk, we’ll look at two strategies that are commonly used when it comes to managing API contracts safely and efficiently.

The first approach builds on the combination of OpenAPI, Renovate, and automated code generation. When APIs are defined through OpenAPI specifications, it is possible to generate type-safe clients and server stubs. Add Renovate to the mix, and you can detect API spec changes and trigger automated pull requests for updated generated code in your repositories. 

The second approach is contract testing—usually implemented as Consumer-Driven Contract Testing. Here, each consumer defines their expectations of the API interface as a machine-readable contract. These contracts are verified any time the provider code changes. If a change violates an existing contract, the test fails, preventing regressions before they reach production.

Let us have a look together on both approaches and compare them to the one you use at the moment.

Related Sessions

Virtual Pass session
Wed, Nov 26 • 11:45 a.m. – 12:30 p.m.
Room F3 - Track 3: Talks

25-minute Talk

DevOps Microservices

Mon, Nov 24 • 8:30 a.m. – 4:30 p.m.
F-,E- & D-Rooms

Full-Day Tutorial (6 hours)

API Other Test Automation

Virtual Pass session
Thu, Nov 27 • 11:45 a.m. – 12:30 p.m.
Room E1 - Track 4: Talks

25-minute Talk

Accessibility Testing Tools

Virtual Pass session
Thu, Nov 27 • 11:45 a.m. – 12:30 p.m.
Room F1 - Track 1: Talks

25-minute Talk

Artificial Intelligence (AI) Testability Testing Tools