Contract Testing in Action
With Pact, PactFlow, and GitHub Actions

EPUB · English
Price and availability
EPUB eBookUS store
$67.99
Sign in to buyYou’ll review your order and final price before payment.
Download from your library after delivery. Protected eBooks need a compatible reading app.
For personal use under the eBook licence.
Territorial availability
Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa
Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.
- Format
- EPUB
- DRM
- Not stated by the publisher
- Language
- English
- Publisher
- Manning
- Published
- 28 January 2025
- ISBN
- 9781638356608
- Subjects
- Computing & information technology, Programming & scripting languages: general, Computing and Information Technology, Programming and scripting languages: general
About this book
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 interactionsand 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 youll learn:The core concepts and practices of contract testingTesting microservices with PactConsumer-driven and bi-directional testingBuilding a contract testing frameworkConverting API integration tests to contract testsContract Testing in Action introduces the practice of contract testing through engaging hands-on examples. Youll 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, youll be comfortable with advanced contract testing concepts like can-i-deploy, provider states, and webhooks. Youll even get tips on how to introduce contract testing to your team and other business stakeholders.About the technologyIts difficult to test API and event-based services that can be used by many applications simultaneously through a complex network of integrations. Contract testing offers a straightforward solution. API and service compatibility are verified against agreed-upon contracts that each component in the systemand the developers that build themcan understand and respect. This transformative technique helps uncover integration issues early and adds vital transparency to any system.About the bookContract Testing in Action makes it easy for your team to adopt contract testing for microservices and other API-centric systems. Youll start by learning how contract testing fits into the software development lifecycle, and then youll explore practical methods to integrate it with your own tech stack and practices. Youll use leading contract testing toolsincluding Pact, PactFlow, and GitHub Actionsto build your own contract testing framework, set up consumer-driven contract testing for REST and GraphQL APIs, and integrate it into your CI/CD pipeline.What's insideTesting microservices with PactConsumer-driven and bi-directional contract testingBuilding a contract testing frameworkConverting API integration tests to contract testsAbout the readerFor software developers and quality engineers who have worked with Java or JavaScript, and APIs.About the authorMarie Cruz is a Software Tester with over ten years of experience and also a Developer Advocate at Grafana Labs. Lewis Prescott is a Test Specialist at IBM with over nine years experience in software testing.
Bibliographic data © Gardners Books Ltd.