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

  1. Consumer: Writes a test and generates a 'pact' file.
  2. Broker: The pact file is uploaded to the Pact Broker.
  3. Provider: Fetches the pact from the broker and verifies its implementation against it.
  4. Can I Deploy?: A tool that checks if the specific versions of the consumer and provider are compatible before deploying to production.

Related Terms