Skip to main content

Feature support

There are multiple implementations of Pact, and while we try to keep feature parity between them, some implementations are ahead of others in terms of feature support.

FeaturePact-JVMPact JS ^Pact Ruby #Pact NET ^Pact Go ^Pact PHP #Pact Python #Pact Swift ^
HTTP pactsYYYYYYYY
Asychronous message pactsYYYYYY
Regular expression matchingYYYYYYYY
Type based matching ("like")YYYYYYYY
Flexible array length ("each like")YYYYYYYY
Verify a pact that uses the Pact specification v3 formatYYYYYYYY
Pact specification v3 matchersYYYYY
Pact specification v3 generatorsYYYYY
Multiple provider states (pact creation)YYYY
Multiple provider states (pact verification)YYYYYYYY
Publish pacts to Pact BrokerYYYYY***
Tag consumer version in Pact Broker when publishing pactYYY*****
Dynamically fetch pacts for provider from Pact Broker for verificationYYYYYYY*
Dynamically fetch pacts for provider with specified tagsYYYYYYY*
Automatically tag consumer/provider with name of git branch*Y*****
Use 'pacts for verification' Pact Broker APIYYYYYYYN
Pending pactsYYYYYYYN
WIP pactsYYYYYYYN
JSON test results outputYYY***
XML test results outputNYY***
Markdown test results outputY
Run a single interaction when verifying a pactYYY*Y***
Injecting values from provider state callbacksYYY
Date/Time expressions with generatorsYYY
Featurepact4sPact RustPact C++
HTTP pactsYYY
Asychronous message pactsN(1)N
Regular expression matchingYYY
Type based matching ("like")YYY
Flexible array length ("each like")YYY
Verify a pact that uses the Pact specification v3 format?YN
Pact specification v3 matchers?YY
Pact specification v3 generatorsYY
Multiple provider states (pact creation)?YY
Multiple provider states (pact verification)?YN
Publish pacts to Pact Broker?NN
Tag consumer version in Pact Broker when publishing pact?NN
Dynamically fetch pacts for provider from Pact Broker for verification?YN
Dynamically fetch pacts for provider with specified tags?YN
Automatically tag consumer/provider with name of git branchNN
Use 'pacts for verification' Pact Broker APINNN
Pending pactsNNN
WIP pactsNNN
JSON test results outputNN
XML test results outputNN
Markdown test results outputNN
Run a single interaction when verifying a pact?NN
Injecting values from provider state callbacksNN
Date/Time expressions with generatorsNN

# - these implementations wrap the shared "pact-ruby-standalone" "shared core"

^ - these implementations wrap the rust shared core

* - the feature is available in the underlying shared implementation but may not have been exposed in the native "wrapper" code yet. If you are interested in this feature, but cannot see any documentation for it in your implementation, please raise an issue in the relevant repository.

(1) - base support for the feature is implemented, but it is not used by anything.

1 - A beta version of the package is available with the selected feature.