Category guides · published
"Best open source contract testing tools": 10 listed, sorted by GitHub stars
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
The contract category covers consumer-driven contract testing tools, following the definition in the FreeQATools category list. The listed tools form three groups by documented scope: Pact libraries for different languages or platforms, a contract broker, and tools that run API specifications or DSL files as contracts. The table below is sorted by GitHub stars on the fetch date.
How a consumer-driven contract test works
In Pact Go, a consumer test runs against a mock provider and records the expected interactions in a pact file (Pact Go). The Pact Go provider package then checks a running API against one or more pact files (Pact Go). Pact JS uses the PactV3 class on the consumer side and the Verifier class on the provider side (Pact JS).
Pact Broker is a Ruby application for sharing contracts and their verification results between consumer and provider projects (Pact Broker). The Pact Broker README states that it accepts any contract that serialises to JSON, not only pacts (README). A matrix in the broker shows which consumer and provider versions are compatible (Pact Broker).
The Pact Go README describes CI/CD workflows through a Pact Broker (README). The Pact JS README also describes CI/CD workflows through a Pact Broker (README). The Pact Net README also describes CI/CD workflows through a Pact Broker (README).
Pact libraries by language and transport
The documented languages differ between the Pact libraries. Pact JS runs on Node.js (README). Pact-JVM covers Java, Groovy and Kotlin, with Scala through pact4s (README). Pact Python targets the Python versions that the Python Software Foundation still supports (README). Pact Ruby provides an RSpec DSL for writing contract tests (Pact Ruby).
Pact Go installs as a Go module (README). Pact Net is published on NuGet (README). Its README samples are written in C# with xUnit (README).
The documented transports differ between the libraries. Pact JS lists HTTP/REST and event-driven systems (README). Pact Go lists HTTP/REST and event-driven systems (README). Pact Python lists HTTP/REST and event-driven systems (README).
Pact-JVM lists HTTP plus message queue interactions through V3 message pacts (README). Pact Net lists HTTP and message interactions (README). Pact Ruby lists HTTP, gRPC and asynchronous messages such as Kafka (README).
The Pact libraries differ in their native dependencies. Pact Go calls C shared libraries built from Rust, so cgo must be enabled (Pact Go). Pact Net runs its core in a native Rust library, so providers must listen on a real TCP socket (Pact Net). Pact-JVM states that its libraries have no native dependencies (Pact-JVM).
Tools that start from a specification or a DSL
Specmatic treats API specifications as executable contracts (Specmatic). Its README lists OpenAPI, AsyncAPI, GraphQL SDL files and gRPC proto files as contract sources (README). Its CI guide describes the executable as independent of platform and programming language (CI docs).
Prism reads OpenAPI v2.0, v3.0 and v3.1 documents as well as Postman Collections (README). Its mock command serves an API generated from the document (Prism). Its proxy command forwards traffic to a real API and reports differences from the document (Prism).
Spring Cloud Contract writes contracts in DSLs for Groovy, YAML, Java and Kotlin (docs). Its README states that the project is no longer actively maintained and names Stubborn.sh as the new maintainer (Spring Cloud Contract).
How this list is sorted
The quoted title is a search query, not a verdict. FreeQATools does not rank tools by opinion. The list below is sorted by GitHub stars, descending, as fetched from the repository host API on the date shown with each value.
Stars count how many accounts have starred a repository. They say nothing about fit for a given project, so the documented facts under each tool are the part to compare.
Every tool here meets the inclusion rules: an OSI-approved license, a public repository, software testing or quality as its primary purpose and at least one release or tag. Each status badge follows the status rules on the methodology page.
Open-source contract testing tools by GitHub stars
| Prism | 5,0341 | 2026-07-171v5.16.0 | 2026-09-211 | Apache-2.0 | TypeScript | active |
|---|---|---|---|---|---|---|
| Pact Ruby | 2,1911 | 2026-09-141v2.1.0 | 2026-09-181 | MIT | Ruby | active |
| Pact JS | 1,8151 | 2026-09-071v17.1.4 | 2026-09-221 | MIT | TypeScript | active |
| Pact-JVM | 1,1451 | 2026-08-1014_7_5 | 2026-09-211 | Apache-2.0 | Kotlin | active |
| Pact Go | 9551 | 2026-09-161v2.8.0 | 2026-09-211 | MIT | Go | active |
| Pact Net | 9311 | 2025-03-2215.0.1 | 2026-09-161 | MIT | C# | active |
| Pact Broker | 7451 | 2026-09-171v2.121.2 | 2026-09-211 | MIT | Ruby | active |
| Spring Cloud Contract | 7301 | 2026-06-111v5.0.3 | 2026-07-061 | Apache-2.0 | Java | archived |
| Pact Python | 6841 | 2026-09-171pact-python/3.4.1 | 2026-09-211 | MIT | Python | active |
| Specmatic | 3971 | 2026-09-0712.54.1 | 2026-09-221 | MIT | Kotlin | active |
1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.
Filters for language, license and status are on the contract testing category page.
Tools in this list
Each entry gives the tool's one-line summary from its README and the facts its documentation states for this category, each with its source. Facts that are not documented are left out here and marked on the comparison pages.
Prism
OpenAPI mock server and validation proxy for API mocking and contract testing, run from the command line. README, read 2026-09-22
- Contract or spec formats
- OpenAPI v3.1, v3.0 and v2.0 (Swagger); Postman Collections source: README
- Protocols
- HTTP source: README
- CI integration
- Runs standalone or in continuous integration source: README
- Install method
- npm (@stoplight/prism-cli), standalone binaries, Docker image stoplight/prism source: Docs: Installation
Pact Ruby
Ruby RSpec DSL for Pact contract tests over HTTP, gRPC and message transports, built on pact-ffi. README, read 2026-09-22
- Languages for writing tests
- Ruby with RSpec source: README
- Contract or spec formats
- Pact specification, including V4 mixed interactions in a single file source: README
- Protocols
- HTTP, gRPC and async messages (Kafka) source: README
- CI integration
- A :pact RSpec tag separates Pact tests in CI/CD pipelines source: README
- Install method
- RubyGems (gem "pact") source: README
Pact JS
Node.js library for Pact contract tests, with the PactV3 consumer API and Verifier class in the @pact-foundation/pact npm package. README, read 2026-09-22
- Languages for writing tests
- JavaScript on Node.js (Node 16+ as of pact-js v12) source: README
- Contract or spec formats
- Pact specification versions 2, 3 and 4 (pact-js 10.x and later) source: README
- Protocols
- HTTP/REST and event-driven systems source: README
- CI integration
- CI/CD workflows through Pact Broker source: README
- Install method
- npm (npm install --save-dev @pact-foundation/pact) source: README
Pact-JVM
JVM library for Pact contract tests with JUnit, Spring, Gradle and Maven support, covering specification V4. README, read 2026-09-22
- Languages for writing tests
- JVM languages: Java, Groovy, Kotlin; Scala via pact4s; Clojure through the JUnit library source: README
- Contract or spec formats
- Pact specification V4 with plugins (4.7.x branch) source: README
- Protocols
- HTTP; message queue interactions (V3 message pacts) source: README
- CI integration
- Maven plugin links verification results to a CI build URL (pact.verifier.buildUrl) source: Docs: Maven plugin
- Install method
- Maven artefacts under au.com.dius.pact (for example au.com.dius.pact:consumer) source: README
Pact Go
Go library for Pact consumer tests and provider verification, which calls Rust-built C shared libraries and needs cgo enabled. README, read 2026-09-22
- Languages for writing tests
- Go (consumer package github.com/pact-foundation/pact-go/v2/consumer) source: README
- Contract or spec formats
- Pact specification versions 2, 3 and 4 (pact-go 2.0.x) source: README
- Protocols
- HTTP/REST and event-driven systems source: README
- CI integration
- CI/CD workflows through Pact Broker source: README
- Install method
- Go module (go get github.com/pact-foundation/pact-go/v2) source: README
Pact Net
.NET library for Pact contract tests with a V4 pact builder and PactVerifier class, published as NuGet packages. README, read 2026-09-22
- Languages for writing tests
- .NET (C# samples written with xUnit) source: README
- Contract or spec formats
- Pact specification versions 2, 3 and 4 (PactNet 5.x) source: README
- Protocols
- HTTP and message interactions source: README
- CI integration
- CI/CD workflows through Pact Broker source: README
- Install method
- NuGet package PactNet source: README
Pact Broker
Ruby application with a REST API for sharing Pact contracts and verification results between consumers and providers. README, read 2026-09-22
- Contract or spec formats
- Pacts; any contract that can be serialized to JSON source: README
- CI integration
- CLI for the Pact workflow in continuous integration source: README
- Install method
- Pact Broker Docker image, or Terraform on AWS source: README
Spring Cloud Contract
Consumer-driven contract testing for Spring applications over HTTP and messaging, now maintained by Stubborn.sh. README, read 2026-09-22
- Languages for writing tests
- Contract DSLs in Groovy, YAML, Java and Kotlin source: Docs: Contract DSL
- Contract or spec formats
- Contract DSL; pluggable converters for formats such as YAML, RAML or Pact source: Docs: Using the Pluggable Architecture
- Protocols
- HTTP and messaging source: Docs: Introducing Spring Cloud Contract
- Install method
- Docker image springcloud/spring-cloud-contract source: Docs: Docker Project
Pact Python
Python library for Pact consumer and provider contract testing of HTTP/REST and event-driven systems. README, read 2026-09-22
- Languages for writing tests
- Python (versions supported by the Python Software Foundation) source: README
- Contract or spec formats
- Pact Specification v4 (default) source: Docs: Consumer Testing
- Protocols
- HTTP/REST and event-driven systems source: README
- CI integration
- Publishes provider verification results to a Pact Broker, with version values from the CI/CD environment source: Docs: Provider Testing
- Install method
- pip (pip install pact-python) source: README
Specmatic
Contract-driven development tool that runs OpenAPI, AsyncAPI, GraphQL and gRPC specifications as executable contracts. README, read 2026-09-22
- Languages for writing tests
- Platform and programming language independent executable source: Docs: Continuous Integration
- Contract or spec formats
- OpenAPI, AsyncAPI, GraphQL SDL files, gRPC Proto files source: README
- CI integration
- Runs in CI through the CLI; CI guide with GitHub Actions and GitLab examples source: Docs: Continuous Integration
- Install method
- Docker image specmatic/specmatic; also standalone JAR, npx specmatic, pip install specmatic source: Docs: Download