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.
Large, loosely coupled systems have hundreds, even thousands, of interactions—and traditional testing can often struggle to keep up! Enter contract testing. This rapidly growing new approach checks API and service compatibility by verifying it against an agreed contract. No more unexpected integration issues, and no more breaking things in production!
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 event-driven architecture. 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.