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
Fast, Robust, Accurate Or how to love your test...
Search
David
November 18, 2022
Technology
0
31
Fast, Robust, Accurate Or how to love your tests again
An empiric take to testing.
David
November 18, 2022
Tweet
Share
More Decks by David
See All by David
Testing beyond QualityAssurance
xuaps
0
80
WebRTC
xuaps
0
120
Why Django sucks?
xuaps
0
76
Other Decks in Technology
See All in Technology
AWS監視を「もっと楽する」ために
uechishingo
0
230
Data Hubグループ 紹介資料
sansan33
PRO
0
2.6k
Master Dataグループ紹介資料
sansan33
PRO
1
4.2k
The Engineer with a Three-Year Cycle - 2
e99h2121
0
140
さくらのクラウドでのシークレット管理を考える/tamachi.sre#2
fujiwara3
1
210
Databricks Free Editionで始めるLakeflow SDP
taka_aki
0
170
SOC2は、取った瞬間よりその後が面白い
3flower
0
150
書籍執筆での生成AIの活用
sat
PRO
0
110
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
12k
旬のブリと旬の技術で楽しむ AI エージェント設計開発レシピ
chack411
1
300
GitHub Copilot CLI 現状確認会議
torumakabe
11
3.4k
SwiftDataを覗き見る
akidon0000
0
290
Featured
See All Featured
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
2.9k
Odyssey Design
rkendrick25
PRO
0
470
The Cost Of JavaScript in 2023
addyosmani
55
9.4k
Designing for humans not robots
tammielis
254
26k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
0
1k
KATA
mclloyd
PRO
33
15k
From π to Pie charts
rasagy
0
120
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
560
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Transcript
@xuapsdev Fast, Robust, Accurate (WIP) Or how to love your
tests again
This is not a talk about opinions
1 - We progress faster with test
2 - Bad tests could be worst than no tests
None
So, what is a bad test from an empirical point
of view?
None
Slow tests
Slow tests False alarms
Slow tests False alarms Di ffi cult to read tests
Brittle tests Slow tests False alarms Di ffi cult to
read tests
Brittle tests Slow tests False alarms Di ffi cult to
read tests What else?
3 properties Speed Detection of regressions Resistance to refactor
Speed
Resistance to refactor
Detection of regression
Resistance to refactor Detection of regressions Speed End to end
test Trivial tests Brittle tests
Oh boy my tests are really bad…
I am so happy that my tests are so good…
None
Lets get some data
Speed
DEMO
Resistance to refactor
Resistance to refactor
DEMO
Detection of regression
Detection of regression
DEMO
I need to start using this right now
How am I using this data?
To decide how to test something
Tune it!
Tune it! Resistance to refactor Speed Detection of regressions
Tune it! Resistance to refactor Speed Detection of regressions Resistance
to refactor Detection of regressions Speed End to end test Trivial tests Brittle tests
To decide if write a test is worthy or not
No test is better than a bad test but, then
we need something else
O b s e r v a b i l
i t y
@xuapsdev @
[email protected]
Do you want an extra ball?
Maintainability Extra ball
None
@xuapsdev @
[email protected]