
Contract Testing in Action
Manning Publications (Publisher)
Published on 16. April 2025
Book
Hardback
304 pages
978-1-63343-724-1 (ISBN)
Description
Contract testing is a simple, reliable way to make sure that each service and API plays nice with other components so you can deploy independently and safely.
In a microservices-first world, traditional testing struggles to keep up with all the potential interactions in a large, loosely-coupled system. Contract testing checks the compatibility of an API or service by validating it against an agreed contract. This straightforward method uncovers integration issues early and adds valuable transparency to compatibility expectations.
In Contract Testing in Action you'll learn:
The core concepts and practices of contract testing
Testing microservices with Pact
Consumer-driven and bi-directional testing
Building a contract testing framework
Converting API integration tests to contract tests
Contract Testing in Action introduces the practice of contract testing through engaging hands-on examples. You'll learn how to introduce contract tests for multiple different types of communication, from REST APIs to GraphQL. By the end of this practical guide, you'll be comfortable with advanced contract testing concepts like can-i-deploy, provider states, and webhooks. You'll even get tips on how to introduce contract testing to your team and other business stakeholders.
In a microservices-first world, traditional testing struggles to keep up with all the potential interactions in a large, loosely-coupled system. Contract testing checks the compatibility of an API or service by validating it against an agreed contract. This straightforward method uncovers integration issues early and adds valuable transparency to compatibility expectations.
In Contract Testing in Action you'll learn:
The core concepts and practices of contract testing
Testing microservices with Pact
Consumer-driven and bi-directional testing
Building a contract testing framework
Converting API integration tests to contract tests
Contract Testing in Action introduces the practice of contract testing through engaging hands-on examples. You'll learn how to introduce contract tests for multiple different types of communication, from REST APIs to GraphQL. By the end of this practical guide, you'll be comfortable with advanced contract testing concepts like can-i-deploy, provider states, and webhooks. You'll even get tips on how to introduce contract testing to your team and other business stakeholders.
More details
Language
English
Place of publication
New York
United States
Target group
Professional and scholarly
Dimensions
Height: 232 mm
Width: 188 mm
Thickness: 32 mm
Weight
560 gr
ISBN-13
978-1-63343-724-1 (9781633437241)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Additional editions

E-Book
01/2025
1st Edition
Simon + Schuster LLC
€49.44
Available for download
Persons
Marie Cruz is a Software Tester with over 10 years of experience. Currently a Senior Developer Advocate for Grafana Labs, she has previously worked as an Engineering Manager responsible for driving continuous testing and quality improvements, and a Principal Engineer focused on introducing recommended practices for testing and test automation frameworks.
Lewis Prescott is a Test Specialist at IBM. He has 9 years experience in software testing, is a recognized champion of Contract Testing and course author at Test Automation University, as well as an active mentor in the testing community.
Lewis Prescott is a Test Specialist at IBM. He has 9 years experience in software testing, is a recognized champion of Contract Testing and course author at Test Automation University, as well as an active mentor in the testing community.