Suggest a tool

Pact Ruby vs Pact-JVM: open-source contract testing tools compared

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

Summary

Pact Ruby: Ruby RSpec DSL for Pact contract tests over HTTP, gRPC and message transports, built on pact-ffi.

Pact-JVM: JVM library for Pact contract tests with JUnit, Spring, Gradle and Maven support, covering specification V4.

Both are listed under Contract testing. The table gives repository metrics from the GitHub API with their fetch date, then the documented facts used for every comparison in this category, each linked to the README or docs page it comes from. A cell reads "not documented" when the fact was not found in the project's documentation; that does not mean the feature is absent.

Side by side

Pact Ruby and Pact-JVM: metrics and documented facts, in the fixed row order used for contract testing comparisons.
FactPact RubyPact-JVM
Stars2,19111,1451
Forks21814931
Contributors9412521
Last release2026-09-1412026-08-101
Last commit2026-09-1812026-09-211
Commits in 90 days151291
LicenseMIT1Apache-2.01
Primary languageRuby1Kotlin1
Statusactive1active1
Languages for writing testsRuby with RSpec source: READMEJVM languages: Java, Groovy, Kotlin; Scala via pact4s; Clojure through the JUnit library source: README
Contract or spec formatsPact specification, including V4 mixed interactions in a single file source: READMEPact specification V4 with plugins (4.7.x branch) source: README
ProtocolsHTTP, gRPC and async messages (Kafka) source: READMEHTTP; message queue interactions (V3 message pacts) source: README
CI integrationA :pact RSpec tag separates Pact tests in CI/CD pipelines source: READMEMaven plugin links verification results to a CI build URL (pact.verifier.buildUrl) source: Docs: Maven plugin
Install methodRubyGems (gem "pact") source: READMEMaven artefacts under au.com.dius.pact (for example au.com.dius.pact:consumer) source: README

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

When each fits

Written from each project's documented scope, not from preference. Neither tool is ranked.

Pact Ruby

Fits projects that test contracts between Ruby service consumers and providers; its README describes a DSL for writing contract tests in Ruby with RSpec. source: README

Pact-JVM

Fits projects that run on the JVM and use consumer-driven contracts; its README describes consumer tests that generate Pact files used to verify service providers. source: README

More on these tools

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: repository, read
  3. GitHub REST API: contributors, read
  4. GitHub REST API: contributors, read
  5. GitHub REST API: latest release, read
  6. GitHub REST API: latest release, read
  7. GitHub REST API: commits, read
  8. GitHub REST API: commits, read
  9. README, read
  10. README, read
  11. Docs: Maven plugin, read

Documented facts collected 2026-09-22. See the methodology for how metrics and facts are gathered.