Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Testing Spring Boot Microservices
Search
Alberto C. Ríos
May 08, 2018
Programming
0
41
Testing Spring Boot Microservices
Practical experiences testing Spring Boot microservices
Alberto C. Ríos
May 08, 2018
Tweet
Share
More Decks by Alberto C. Ríos
See All by Alberto C. Ríos
Kubernetes local development workflow distilled
albertoimpl
0
49
Kubernetes local development workflow distilled
albertoimpl
0
49
Kubernetes Distilled
albertoimpl
0
220
Testing Microservices Pipeline
albertoimpl
0
54
Other Decks in Programming
See All in Programming
小田原でみんなで一句詠みたいな #phpcon_odawara
stefafafan
0
320
gen_statem - OTP's Unsung Hero
whatyouhide
1
200
Being an ethical software engineer
xgouchet
PRO
0
210
Building Scalable Mobile Projects: Fast Builds, High Reusability and Clear Ownership
cyrilmottier
2
270
The Evolution of the CRuby Build System
kateinoigakukun
0
130
DomainException と Result 型で作る型安全なエラーハンドリング
karszawa
0
900
Dissecting and Reconstructing Ruby Syntactic Structures
ydah
0
220
Bedrock×MCPで社内ブログ執筆文化を育てたい!
har1101
6
950
サービスレベルを管理してアジャイルを加速しよう!! / slm-accelerate-agility
tomoyakitaura
1
170
Signal-Based Data FetchingWith the New httpResource
manfredsteyer
PRO
0
170
Making TCPSocket.new "Happy"!
coe401_
1
250
Enterprise Web App. Development (1): Build Tool Training Ver. 5
knakagawa
1
110
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
47
2.5k
Speed Design
sergeychernyshev
29
890
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
52
2.4k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
Statistics for Hackers
jakevdp
798
220k
How GitHub (no longer) Works
holman
314
140k
Automating Front-end Workflow
addyosmani
1369
200k
Typedesign – Prime Four
hannesfritz
41
2.6k
Testing 201, or: Great Expectations
jmmastey
42
7.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
Why Our Code Smells
bkeepers
PRO
336
57k
StorybookのUI Testing Handbookを読んだ
zakiyama
29
5.6k
Transcript
Testing Microservices Practical experiences Greg Patricio and Alberto Ríos
This is a conversation We are going to be talking,
but feel free to stop us
Testing a stand-alone service User Service
Testing a stand-alone service Unit tests Integration tests Component tests
CT Testing a stand-alone service Controller Service Repository Mock Controller
Mock Service HTTP API Controller Repository DB IT UT HTTP API DB
When do we use Test Doubles? Service Mock Repo Unit
tests. Scope: class Unit
Code example: unit test
Code example: integration test
Code example: integration test
When do we use Test Doubles? Service Mock Repo Unit
tests. Scope: class Stub External Dep Component tests. Scope: whole service Unit Unit Service Http Client Controller
Code example: component test
Testing a service with an external dependency Billing Service User
Service
Testing a service with an external dependency Unit tests Integration
tests Component tests Contract Checks
What is a contract check? Billing Service User Service Contract
Check Can the service consume its external dependencies?
What is a contract check? Billing Service User Service Contract
Check Service HTTP Client Controller User Service Can the service consume its external dependencies? Billing Service
Code example: contract check
CT Testing a service with an external dependency Controller Service
HTTP Client Mock Controller Mock Service Mock HTTP Client HTTP API Controller HTTP Client Real User Service IT UT CC Controller Service Repository HTTP API DB
Acknowledgement Bengt G. Hammarlund Cassio Dias Pivotal-STCS Sonora team
Thank you! Questions?