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

    303 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 728 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 354

Repositories

Showing 10 of 82 repositories
  • pact-broker-chart Public

    This repository houses the Pact Broker Helm Chart

    pact-foundation/pact-broker-chart’s past year of commit activity
    Smarty 14 MIT 21 1 2 Updated Jul 16, 2025
  • pact_broker Public

    Enables your consumer driven contracts workflow

    pact-foundation/pact_broker’s past year of commit activity
    Ruby 728 MIT 184 98 (1 issue needs help) 15 Updated Jul 16, 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,107 Apache-2.0 482 373 (2 issues need help) 1 Updated Jul 16, 2025
  • pact-provider-verifier Public

    Cross-platform, generic language, Pact provider verification tool

    pact-foundation/pact-provider-verifier’s past year of commit activity
    Ruby 33 MIT 24 6 2 Updated Jul 16, 2025
  • pact-ruby-cli Public

    Amalgamated Pact Ruby CLI

    pact-foundation/pact-ruby-cli’s past year of commit activity
    Shell 13 MIT 13 4 3 Updated Jul 16, 2025
  • rspec-pact-matchers Public

    Provides an RSpec matcher using the Pact matching logic

    pact-foundation/rspec-pact-matchers’s past year of commit activity
    Ruby 0 MIT 0 1 1 Updated Jul 16, 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 2 Updated Jul 15, 2025
  • pact-ruby-standalone Public

    A standalone pact command line executable using the ruby pact implementation and Travelling Ruby

    pact-foundation/pact-ruby-standalone’s past year of commit activity
    Shell 43 MIT 35 9 (2 issues need help) 5 Updated Jul 16, 2025
  • pact_broker-client Public

    A Ruby and CLI client for the Pact Broker. Publish and retrieve pacts and verification results.

    pact-foundation/pact_broker-client’s past year of commit activity
    Ruby 69 MIT 49 18 (1 issue needs help) 1 Updated Jul 15, 2025
  • pact-js-core Public

    Core binaries for pact-js, a Contract Testing Framework. NOTE: If you are looking to do Pact contract testing in node, you almost certainly want pact-js, not pact-node.

    pact-foundation/pact-js-core’s past year of commit activity
    TypeScript 151 MIT 79 5 3 Updated Jul 15, 2025