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 foundError
: Found an example, but the test was unsuccessful
consumer-features
This suite contains basic tests to demonstrate consumer features
Example | Description | broken v2 | v3 | js v2 | v2-jest-pact | v3 | v3-jest-pact | python v2 | v3 |
---|---|---|---|---|---|---|---|---|---|
example-consumer-sns | This example is a simple example to demonstrate the concept of feature examples, rather than anything specific to SNS! | - | - | - | - | - | - | ✅ Yes | ✅ Yes |
example-hello-world | This is a very basic Pact example, demonstrating the simplest use of a Pact Consumer | - | - | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | - |
example-provider-hello-world | No example README.md found | - | - | ❌ Error | - | - | - | - | - |
specs
This suite contains tests to demonstrate differences between spec versions.
Example | Description | broken 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.
Example | Description | broken v2 | v3 | js v2 | v3 | python v2 | v3 |
---|---|---|---|---|---|---|---|
example-date | No example README.md found | - | - | - | - | ❌ Error | - |