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)

    40 7

  2. pact-specification pact-specification Public

    Describes the pact format and verification specifications

    296 28

  3. pact-reference pact-reference Public

    Reference implementations for the pact specifications

    Rust 91 46

  4. pact_broker pact_broker Public

    Enables your consumer driven contracts workflow

    Ruby 702 173

  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 3 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.6k 345

Repositories

Showing 10 of 80 repositories
  • 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 571 MIT 138 46 (1 issue needs help) 7 Updated Oct 12, 2024
  • pact-workshop-js Public

    Pact JS workshop - learn Pact in 60 minutes

    pact-foundation/pact-workshop-js’s past year of commit activity
    JavaScript 148 155 5 (1 issue needs help) 16 Updated Oct 11, 2024
  • docs.pact.io Public

    Pact documentation website

    pact-foundation/docs.pact.io’s past year of commit activity
  • 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,079 Apache-2.0 479 355 (2 issues need help) 4 Updated Oct 10, 2024
  • pact-plugins Public

    🏰 Architecture to support Plugins 🔌 with Pact 🔗

    pact-foundation/pact-plugins’s past year of commit activity
    Rust 19 MIT 11 12 2 Updated Oct 10, 2024
  • pact-net Public

    .NET 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-net’s past year of commit activity
  • pact-workshop-dotnet-core-v1 Public

    A workshop for Pact using .NET Core

    pact-foundation/pact-workshop-dotnet-core-v1’s past year of commit activity
    C# 76 Apache-2.0 209 7 0 Updated Oct 8, 2024
  • pact-foundation/pact-workshop-dotnet’s past year of commit activity
    C# 3 Apache-2.0 0 0 0 Updated Oct 8, 2024
  • pact-go Public

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

    pact-foundation/pact-go’s past year of commit activity
  • pact-js Public

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

    pact-foundation/pact-js’s past year of commit activity