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.
Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications.
About the technology
It’s 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 system—and the developers that build them—can understand and respect. This transformative technique helps uncover integration issues early and adds vital transparency to any system.
About the book
Contract Testing in Action makes it easy for your team to adopt contract testing for microservices and other API-centric systems. You’ll start by learning how contract testing fits into the software development lifecycle, and then you’ll explore practical methods to integrate it with your own tech stack and practices. You’ll use leading contract testing tools—including Pact, PactFlow, and GitHub Actions—to 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 inside
• Testing microservices with Pact
• Consumer-driven and bi-directional contract testing
• Building a contract testing framework
• Converting API integration tests to contract tests
About the reader
For software developers and quality engineers who have worked with Java or JavaScript, and APIs.
About the author
Marie 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.
Table of Contents
Part 1
1 Introduction to contract testing
2 How contract testing fits into wider testing concepts
3 A technical overview of contract testing
Part 2
4 Implementing consumer-driven contract testing for web applications
5 Implementing consumer-driven contract testing for mobile clients
6 Implementing consumer-driven provider contract tests
7 Contract testing for GraphQL
8 Contract testing for event-driven architecture
9 Storing, hosting, and securing the contracts
10 Setting up contract testing in a CI/CD pipeline
Part 3
11 Implementing provider-driven contract testing
12 Moving integration tests to contract tests
Appendix A Tool comparisons
Appendix B Setting up project requirements for consumer contract testing (web applications)
Appendix C Answers to chapter exercises
"synopsis" may belong to another edition of this title.
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.
From the back cover:
Contract Testing in Action is a hands-on guide to contract testing for microservices applications and other systems of loosely-coupled components. After learning the basics of contract design and implementation, you'll dive into constructing your own contract testing framework. You'll explore the leading contract testing tools, including Pact, PactFlow, and GitHub Actions. Plus, you'll set up consumer-driven contract testing for REST and GraphQL APIs and learn to integrate contract testing into a CI/CD pipeline. Finally, you'll delve into provider-driven contract testing, which simplifies adoption by utilizing your existing stack and practices.
About the reader:
For experienced software developers and quality engineers who have worked with Java, JavaScript, and APIs."About this title" may belong to another edition of this title.
Seller: GreatBookPrices, Columbia, MD, U.S.A.
Condition: As New. Unread book in perfect condition. Seller Inventory # 48410490
Seller: INDOO, Avenel, NJ, U.S.A.
Condition: As New. Unread copy in mint condition. Seller Inventory # SS9781633437241
Seller: GreatBookPrices, Columbia, MD, U.S.A.
Condition: New. Seller Inventory # 48410490-n
Seller: INDOO, Avenel, NJ, U.S.A.
Condition: New. Brand New. Seller Inventory # 9781633437241
Seller: PBShop.store US, Wood Dale, IL, U.S.A.
HRD. Condition: New. New Book. Shipped from UK. Established seller since 2000. Seller Inventory # PB-9781633437241
Seller: Rarewaves USA, OSWEGO, IL, U.S.A.
Hardback. Condition: New. 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 testingTesting microservices with PactConsumer-driven and bi-directional testingBuilding a contract testing frameworkConverting 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. Seller Inventory # LU-9781633437241
Seller: Grand Eagle Retail, Bensenville, IL, U.S.A.
Hardcover. Condition: new. Hardcover. 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 testingTesting microservices with PactConsumer-driven and bi-directional testingBuilding a contract testing frameworkConverting 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. 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. Shipping may be from multiple locations in the US or from the UK, depending on stock availability. Seller Inventory # 9781633437241
Seller: PBShop.store UK, Fairford, GLOS, United Kingdom
HRD. Condition: New. New Book. Shipped from UK. Established seller since 2000. Seller Inventory # PB-9781633437241
Quantity: 15 available
Seller: Speedyhen LLC, Hialeah, FL, U.S.A.
Condition: NEW. Seller Inventory # NWUS9781633437241
Seller: GreatBookPricesUK, Woodford Green, United Kingdom
Condition: New. Seller Inventory # 48410490-n
Quantity: 9 available