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
73
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
160
How Full is your Stack?
andreipfeiffer
2
45
A Vue over React
andreipfeiffer
6
1k
Automatizarea proceselor cu Grunt
andreipfeiffer
0
130
Other Decks in Programming
See All in Programming
サーバーゆる勉強会 DBMS の仕組み編
kj455
1
300
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.4k
テストコードのガイドライン 〜作成から運用まで〜
riku929hr
7
1.4k
Androidアプリの One Experience リリース
nein37
0
1.2k
AWS re:Invent 2024個人的まとめ
satoshi256kbyte
0
100
React 19でお手軽にCSS-in-JSを自作する
yukukotani
5
560
PicoRubyと暮らす、シェアハウスハック
ryosk7
0
220
ATDDで素早く安定した デリバリを実現しよう!
tonnsama
1
1.9k
カンファレンス動画鑑賞会のススメ / Osaka.swift #1
hironytic
0
170
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
300
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
240
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
770
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
98
18k
GraphQLとの向き合い方2022年版
quramy
44
13k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Visualization
eitanlees
146
15k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
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 !!!