Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Consumer Driven Contract Testing
Search
Daria Golub
September 21, 2018
Programming
53
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Consumer Driven Contract Testing
What the Consumer Driven Contract Testing is, when it's needed and how it can be implemented
Daria Golub
September 21, 2018
More Decks by Daria Golub
See All by Daria Golub
Woman's path into the IT world
dariagolub
0
51
Other Decks in Programming
See All in Programming
Workers Cache を知る
syumai
0
360
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
AWSに止められる覚悟してますか?
morizo_1984
2
540
APNsからLive Activityを開始する話
yumnumm
0
170
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
130
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
Jetpack Compose Mechanisms
skydoves
3
820
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
190
Featured
See All Featured
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
950
How to Ace a Technical Interview
jacobian
280
24k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
Mind Mapping
helmedeiros
1
400
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Transcript
Consumer driven contract testing Daria Golub, Software developer @nano_repka dgolub
Story
Question
Unit tests. Mocking dependencies Consumer Mock provider request response Provider
Mock consumer request response
Integration tests. E2E tests HELL YEAH
How to test? Unit Contract Integration E2E
Consumer driven contract tests. How it works? © https://reflectoring.io/7-reasons-for-consumer-driven-contracts/
Consumer driven contract tests. Advatages? - Better level of isolation
- Faster time to response - Stability
Pact framework
PACT demo 1. Consumer and provider communicating by GET request
Add test with mocked dependency to consumer and break the provider 2. Apply PACT for consumer testing 3. Apply PACT for provider testing 4. Introduce PACT broker
Step 1. Consumer and provider. Add mocking test GET /flights?flightDate=...
{ airline: "KLM", price: 49.95, .... }
Step 2. Testing on consumer side GET /flights?flightDate=... { airline:
"KLM", price: 49.95, .... }
Step 2. Testing on consumer side Provider settings Expectations Test
actions Assertions
Step 2. Pact file Request spec Response spec Preconditions
Step 3. Testing on provider side GET /flights?flightDate=... { airline:
"KLM", price: 49.95, .... }
Step 4. Pact broker
CI
What did we get Consumer Provider Pact broker Test Test
Conclusion Fast Cheap Reliable BUT
Talk talk talk
Thank you! What questions do you have? @nano_repka dgolub