Skip to main content

Language and spec support for each example

For each language and spec version identified, for each suite defined, is there a corresponding Makefile within an example folder to run against.

  • Yes: Example runs successfully, and generates the expected Pactfile (Consumer), or verifies successfully against the provided Pactfile (Provider)
  • -: No example to test found
  • Error: Found an example, but the test was unsuccessful

consumer-features

This suite contains basic tests to demonstrate consumer features

ExampleDescriptionbroken
v2

v3
js
v2

v2-jest-pact

v3

v3-jest-pact
python
v2

v3
example-consumer-snsThis example is a simple example to demonstrate the concept of feature examples, rather than anything specific to SNS!------✅ Yes✅ Yes
example-hello-worldThis is a very basic Pact example, demonstrating the simplest use of a Pact Consumer--✅ Yes✅ Yes✅ Yes✅ Yes✅ Yes-
example-provider-hello-worldNo example README.md found--❌ Error-----

specs

This suite contains tests to demonstrate differences between spec versions.

ExampleDescriptionbroken
v2

v3
js
v2

v2-jest-pact

v3

v3-jest-pact
python
v2

v3
example-query-param
Spec V2: Query strings are stored as a string e.g. "query": "name=Polar".
Spec V3: Query strings are stored as Map (to an array) instead of strings e.g. "query": {"name": ["Polar"]}
--✅ Yes✅ Yes✅ Yes✅ Yes✅ Yes❌ Error

term

This suite contains basic tests to demonstrate the example Term matchers provided in each language - such as IP address, timestamp - illustrating any
differences.

ExampleDescriptionbroken
v2

v3
js
v2

v3
python
v2

v3
example-dateNo example README.md found----❌ Error-