Overview
Pact allows developers to write contract tests in many different languages (Java, JS, Python, Go, etc.). It provides a 'Pact Broker' to share and manage contracts between different teams and CI/CD pipelines.
The Pact Workflow
- Consumer: Writes a test and generates a 'pact' file.
- Broker: The pact file is uploaded to the Pact Broker.
- Provider: Fetches the pact from the broker and verifies its implementation against it.
- Can I Deploy?: A tool that checks if the specific versions of the consumer and provider are compatible before deploying to production.