Hands on learning
Video Training
Introduction to Pact (via Pactflow)
Watch the introduction to contract testing with Pact series on Youtube.
Courses
Test Automation University
A great starting point is this Contract Testing With Pact course published on Test Automation University
Udemy
A step by step guide using Pact JS & Pact .NET Introduction to Contract Testing course published on Udemy
Pact workshops - from 0 to Pact in ~2 hours
These hands-on labs walk you through an example problem from start to finish, exploring most concepts that Pact supports.
Examples
We have created a number of example projects that you can use as references for your rolling out your contract-testing initiatives.
All examples can be found over at https://docs.pactflow.io/docs/examples/
Consumers
Language | Use Case | Framework/Tech | Description |
---|---|---|---|
JS/NodeJS | Web | React | React JS website relying on a Products API |
JS/NodeJS | Web | Cypress | Example demonstrating how Cypress could be used to generate consumer pacts |
JS/NodeJS | AWS/SNS/Messages | SNS Lambda | AWS Lambda SNS Consumer |
Java | Messages | Kafka | Java Kafka consumer |
NodeJS | Messages | Kafka | NodeJS Kafka consumer |
Java | SOAP Java | Java | SOAP API consumer (note: only compatible with the SOAP provider) |
.NET | API .NET | .NET Products API consumer | |
Golang | API | Golang | Go API Client |
Providers
Language | Use Case | Framework/Tech | Description |
---|---|---|---|
JS/NodeJS | API | Express JS | ExpressJS API provider |
JS/NodeJS | AWS/SNS/Messages | ExpressJS / AWS SNSreadme) | AWS Lambda SNS Provider |
Java | API | Spring Boot | Java Spring Boot API provider |
Java | Messages | Kafka | Java Kafka message provider |
Java | SOAP | Java | Java SOAP API provider (note: only compatible with the SOAP consumer) |
.NET | API | .NET | .NET API provider |
Golang | API | Golang | Gin API Provider |