Consumer Driven Contract Testing with Pact - Backend
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
5
views
Consumer Driven Contract Testing with Pact - Frontend
Hello, I am continuing a series of videos about Consumer-Driven Contract Testing. In this video I'll talk about CDC testing from a Frontend perspective:
- show practical examples of using CDC testing with Angular Framework, Karma test runner, Jasmine and Pact.js.
- generate and publish a consumer-driven contract.
- consider the karma configuration file
- my organization structure of test files
- understand the scope of CDC Testing on the consumer side
- and how the pact.js mock a server (provider) to verify collaboration according contract on the client side
Code: https://github.com/kir-ushakov/yt-con...
https://pactflow.io/ - Pactflow Project Website
https://docs.pact.io/ - Pact Docs
https://github.com/pact-foundation/pa...
https://en.wikipedia.org/wiki/Robustn...
13
views
Consumer Driven Contract Testing with Pact - Theory
Hello, with this video I am starting a series of videos on Consumer-Driven Contract Testing.The series will consist of three parts - theory, front-end and back-end.
This is the first theoretical part, I will tell you:
- What is a Test pyramid (Unit, Integration and E2E testing)
- What is the idea behind CDC testing and why do we need it?
- What is the Pact.js and how to use it for CDC testing
Martin Fowler
https://martinfowler.com/bliki/UnitTe...
https://martinfowler.com/bliki/Integr...
https://martinfowler.com/bliki/BroadS...
https://martinfowler.com/bliki/TestPy...
https://martinfowler.com/articles/pra...
https://pact.io/ - Pact project official website
https://testing.googleblog.com/2015/0...
https://about.codecov.io/blog/getting...
22
views