Skip to content
@pact-foundation

Pact Foundation

The cross-language distributed contract testing framework.

Pact

Pact is the de-facto API contract testing tool. Replace expensive and brittle end-to-end integration tests with fast, reliable and easy to debug unit tests.
  • ⚡ Lightning fast
  • 🎈 Effortless full-stack integration testing - from the front-end to the back-end
  • 🔌 Supports HTTP/REST and event-driven systems
  • 🛠️ Configurable mock server
  • 😌 Powerful matching rules prevents brittle tests
  • 🤝 Integrates with Pact Broker / PactFlow for powerful CI/CD workflows
  • 🔡 Supports 12+ languages

Why use Pact? Contract testing with Pact lets you:

  • ⚡ Test locally
  • 🚀 Deploy faster
  • ⬇️ Reduce the lead time for change
  • 💰 Reduce the cost of API integration testing
  • 💥 Prevent breaking changes
  • 🔎 Understand your system usage
  • 📃 Document your APIs for free
  • 🗄 Remove the need for complex data fixtures
  • 🤷‍♂️ Reduce the reliance on complex test environments

Watch our series on the problems with end-to-end integrated tests, and how contract testing can help.

Pinned Loading

  1. roadmap roadmap Public

    Developer Relations @ Pact - Your map to the Pact landscape for all-comers (maintainers, contributors, users, newbies)

    43 7

  2. pact-specification pact-specification Public

    Describes the pact format and verification specifications

    301 29

  3. pact-reference pact-reference Public

    Reference implementations for the pact specifications

    Rust 97 49

  4. pact_broker pact_broker Public

    Enables your consumer driven contracts workflow

    Ruby 726 184

  5. pact-core-mock-server pact-core-mock-server Public

    In-process mock server for matching HTTP requests and generating responses from a pact file

    Rust 6 2

  6. pact-js pact-js Public

    JS version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems.

    TypeScript 1.7k 353

Repositories

Showing 10 of 82 repositories
  • pact_broker Public

    Enables your consumer driven contracts workflow

    pact-foundation/pact_broker’s past year of commit activity
    Ruby 726 MIT 184 97 (1 issue needs help) 15 Updated Jul 1, 2025
  • pact-broker-docker Public

    Dockerized Pact Broker

    pact-foundation/pact-broker-docker’s past year of commit activity
    Shell 113 MIT 109 2 4 Updated Jul 1, 2025
  • pact-jvm Public

    JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

    pact-foundation/pact-jvm’s past year of commit activity
    Kotlin 1,103 Apache-2.0 482 372 (2 issues need help) 1 Updated Jul 1, 2025
  • pact.io Public

    Pact Foundation Website

    pact-foundation/pact.io’s past year of commit activity
    HTML 221 92 12 (1 issue needs help) 31 Updated Jun 30, 2025
  • pact-python Public

    Python version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

    pact-foundation/pact-python’s past year of commit activity
    Python 611 MIT 143 45 (1 issue needs help) 4 Updated Jun 30, 2025
  • pact-ruby Public

    Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

    pact-foundation/pact-ruby’s past year of commit activity
    Ruby 2,174 MIT 217 23 (7 issues need help) 5 Updated Jun 30, 2025
  • pact-mock_service Public

    Provides a mock service for use with Pact

    pact-foundation/pact-mock_service’s past year of commit activity
    Ruby 73 MIT 70 26 1 Updated Jun 30, 2025
  • pact-support Public

    Shared code for Pact gems

    pact-foundation/pact-support’s past year of commit activity
    Ruby 7 MIT 47 6 (2 issues need help) 4 Updated Jun 30, 2025
  • pact-message-ruby Public

    Create and verify consumer driven contracts for messages

    pact-foundation/pact-message-ruby’s past year of commit activity
    Ruby 9 MIT 10 8 1 Updated Jun 30, 2025
  • pact-consumer-minitest Public

    Minitest support for the Pact Consumer gem

    pact-foundation/pact-consumer-minitest’s past year of commit activity
    Ruby 4 MIT 3 1 0 Updated Jun 30, 2025