Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Testing Layers - ngBigParty
Search
Andrei Pfeiffer
October 13, 2016
Programming
0
81
Testing Layers - ngBigParty
A shorter version of my Testing Layers talk, adapted for ngBigParty conference in Prague 12.10.2016
Andrei Pfeiffer
October 13, 2016
Tweet
Share
More Decks by Andrei Pfeiffer
See All by Andrei Pfeiffer
The Tricothomy of UI Development
andreipfeiffer
0
170
How Full is your Stack?
andreipfeiffer
2
55
A Vue over React
andreipfeiffer
6
1k
Automatizarea proceselor cu Grunt
andreipfeiffer
0
140
Other Decks in Programming
See All in Programming
ID管理機能開発の裏側 高速にSaaS連携を実現したチームのAI活用編
atzzcokek
0
190
251126 TestState APIってなんだっけ?Step Functionsテストどう変わる?
east_takumi
0
300
『実践MLOps』から学ぶ DevOps for ML
nsakki55
2
550
20251127_ぼっちのための懇親会対策会議
kokamoto01_metaps
2
400
認証・認可の基本を学ぼう前編
kouyuume
0
150
Evolving NEWT’s TypeScript Backend for the AI-Driven Era
xpromx
0
270
俺流レスポンシブコーディング 2025
tak_dcxi
13
7.8k
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
210
Herb to ReActionView: A New Foundation for the View Layer @ San Francisco Ruby Conference 2025
marcoroth
0
240
分散DBって何者なんだ... Spannerから学ぶRDBとの違い
iwashi623
0
170
Why Kotlin? 電子カルテを Kotlin で開発する理由 / Why Kotlin? at Henry
agatan
2
6.2k
tparseでgo testの出力を見やすくする
utgwkk
1
130
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
Raft: Consensus for Rubyists
vanstee
140
7.2k
Bash Introduction
62gerente
615
210k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
700
Facilitating Awesome Meetings
lara
57
6.7k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.8k
Scaling GitHub
holman
464
140k
Agile that works and the tools we love
rasmusluckow
331
21k
A designer walks into a library…
pauljervisheath
210
24k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
Side Projects
sachag
455
43k
Practical Orchestrator
shlominoach
190
11k
Transcript
TESTING LAYERS
ANDREI PFEIFFER /andreipfeiffer @pfeiffer_andrei
// code designer
// organizer & speaker
#devsUnited
unit integration end to end
many - few
unit
+do() System Under Test +get() SUT
what to test? public API no private code our own
code no 3rd party code business logic no GUI
how to test? white box isolate stubs / mocks
http xhr db disk SUT dep.
http xhr db disk SUT dep. fake
http xhr db disk SUT dep. fake fake
integration
aka. component testing
what to test? database disk I/O units communication
how to test? white box use real objects no stubs
/ mocks test database fixtures
real db SUT test db
end to end
aka. GUI, acceptance, system
what to test? use cases, features
how to test? setup entire app black box simulate user
events
SUT go to login submit form focus input type email
entire app
speed
fast slower even slower
unit: integration: end-2-end: 0.62 sec 3.00 sec 21.70 sec
unit: integration: end-2-end: 62 sec 5.0 min 36.1 min x100
integration level confidence run frequency setup high high low complex
low low high simple e2e unit speed low high maintainability fragile solid
Díky !!!