Examples
Supported Tools & Languages
Pact is available in many different implementations. See the table below.
The guides cover the consumer-driven contract testing flow.
Consumer-Driven
Table 6. Consumer-Driven
Bi-Directional
Swagger Contract Testing supports many different testing tools for Bi-Directional Contract Testing.
Consumer Side
Table 7. Consumer Side
| Technology | Demo applications |
|---|---|
| Cypress | Swagger Contract Testing consumer side demo with Cypress |
| Wiremock | Swagger Contract Testing consumer side demo with Wiremock |
| Nock | Swagger Contract Testing consumer side demo with Nock |
| Mountebank | Swagger Contract Testing consumer side demo with Mountebank |
| Pact | Swagger Contract Testing consumer side demo with Pact |
| Mock Service Worker | Swagger Contract Testing consumer side demo with Mock Service Worker |
| Playwright - JS | Swagger Contract Testing consumer side demo with Playwright - JS |
Provider Side
Table 8. Provider Side
| Technology | Demo applications |
|---|---|
| ReadyAPI | Swagger Contract Testing provider side demo with ReadyAPI |
| SoapUI | Swagger Contract Testing provider side demo with SoapUI |
| Postman | Swagger Contract Testing provider side demo with Postman |
| REST-assured | Swagger Contract Testing provider side demo with REST-assured |
| Dredd | Swagger Contract Testing provider side demo with Dredd |
| Schematesis | Swagger Contract Testing provider side demo with Schemathesis |
| Product API | Swagger Contract Testing provider example with OAS |
| Multi-Microservice Demo | Swagger Contract Testing provider side demo with OpenTelemetry Astronomy Shop |
Drift Demo Applications
Table 9. Drift Demo Applications
| Technology | Demo applications |
|---|---|
| REST API with OpenAPI definition | https://github.com/pactflow/example-bi-directional-provider-drift/ |
| gRPC/Protocal Buffers (protobufs) | https://github.com/pactflow/example-drift-grpc |
| MCP Servers | https://github.com/pactflow/example-drift-mcp |