Consumer Driven Contract Testing with Pact - Backend

2 months ago
6

In this video I’ll show an example of Consumer-Driven Contract Testing from a provider perspective. In my practical case the provider will be a backend application based on Node.js and MongoDB. But generally the stack of the provider is not very important, because the verification process focuses on the REST requests and responses. I'll use Pact.js to run tests and verify the Pact contract. We also will consider some questions regarding preparing pre-defined states of the provider and authentication for testing purposes.

Code:
https://github.com/kir-ushakov/yt-con...

https://pactflow.io/ - Pactflow Project Website
https://docs.pact.io/ - Pact Docs

Loading comments...