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 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
56
A Vue over React
andreipfeiffer
6
1k
Automatizarea proceselor cu Grunt
andreipfeiffer
0
140
Other Decks in Programming
See All in Programming
高速開発のためのコード整理術
sutetotanuki
1
370
組織で育むオブザーバビリティ
ryota_hnk
0
160
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
170
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
390
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
950
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
AIエージェントの設計で注意するべきポイント6選
har1101
7
3.3k
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.2k
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
7
1.1k
Kotlin Multiplatform Meetup - Compose Multiplatform 외부 의존성 아키텍처 설계부터 운영까지
wisemuji
0
180
CSC307 Lecture 04
javiergs
PRO
0
650
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
220
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Technical Leadership for Architectural Decision Making
baasie
1
230
A designer walks into a library…
pauljervisheath
210
24k
What does AI have to do with Human Rights?
axbom
PRO
0
2k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
67
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
290
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
110
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
62
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
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 !!!