Description
TABLE OF CONTENT
Introduction
1.1 Background
1.2 Purpose of the Document
1.3 Scope
Understanding Pact Testing
2.1 What is Pact Testing?
2.2 Why Pact Testing?
2.3 Key Concepts
2.3.1 Consumer
2.3.2 Provider
2.3.3 Contract
2.4 How Pact Testing Works
2.5 Benefits of Pact Testing
Getting Started
3.1 Prerequisites
3.2 Installation
3.2.1 Consumer Side
3.2.2 Provider Side
Creating Pact Contracts
4.1 Defining Contracts
4.1.1 Request
4.1.2 Response
4.2 Pact File Structure
4.3 Best Practices for Writing Contracts
Running Pact Tests
5.1 Consumer Tests
5.1.1 Setting Up Consumer Tests
5.1.2 Executing Consumer Tests
5.2 Provider Tests
5.2.1 Setting Up Provider Tests
5.2.2 Executing Provider Tests
Verification and Pact Broker
6.1 Verifying Pacts
6.2 Publishing Pacts to Pact Broker
6.3 Consumer Versioning
6.4 Provider Verification
Integrating Pact Testing into CI/CD
7.1 CI/CD Setup
7.2 Automated Pact Verification
Handling Pact Pacticipant Versions
8.1 Managing Changes
8.2 Versioning Strategies