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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
Implementation Patterns
denyspoltorak
0
280
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.1k
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
CSC307 Lecture 04
javiergs
PRO
0
660
Fluid Templating in TYPO3 14
s2b
0
130
今から始めるClaude Code超入門
448jp
8
8.7k
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
2.5k
Oxlint JS plugins
kazupon
1
920
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
730
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
170
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
106
230k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.9k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
830
Marketing to machines
jonoalderson
1
4.6k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
130
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
My Coaching Mixtape
mlcsv
0
48
Speed Design
sergeychernyshev
33
1.5k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Designing Powerful Visuals for Engaging Learning
tmiket
0
230
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 !!!