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
Fluid Templating in TYPO3 14
s2b
0
100
Architectural Extensions
denyspoltorak
0
190
組織で育むオブザーバビリティ
ryota_hnk
0
110
[AI Engineering Summit Tokyo 2025] LLMは計画業務のゲームチェンジャーか? 最適化業務における活⽤の可能性と限界
terryu16
2
390
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
330
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.5k
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
650
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
170
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
2
1.2k
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
5.6k
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
170
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
220
Featured
See All Featured
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
100
The untapped power of vector embeddings
frankvandijk
1
1.5k
Six Lessons from altMBA
skipperchong
29
4.1k
The Curse of the Amulet
leimatthew05
1
7.6k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
4 Signs Your Business is Dying
shpigford
187
22k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
200
Between Models and Reality
mayunak
1
170
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.6k
How STYLIGHT went responsive
nonsquared
100
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 !!!