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 sur code legacy
Search
Jean-Laurent de Morlhon
July 09, 2014
Programming
0
130
Testing sur code legacy
Jean-Laurent de Morlhon
July 09, 2014
Tweet
Share
More Decks by Jean-Laurent de Morlhon
See All by Jean-Laurent de Morlhon
Retour Sur DockerCon 2016 - Docker Mega Meetup
jeanlaurent
1
130
Retour sur DockerCon 2016
jeanlaurent
2
200
Pourquoi Maurice ne doit surtout pas coder en Go.
jeanlaurent
0
180
Diamond Kata Workshop
jeanlaurent
0
190
FruitShop
jeanlaurent
3
820
Phantom, Zombie & Karma, overview of the greatest testing tools for modern web app
jeanlaurent
5
760
Live Coding Tester une Application HTML5
jeanlaurent
1
93
Testing sur Legacy Code
jeanlaurent
1
59
Le fantome, le zombie et testacular Karma. Panorama des outils de tests pour application web moderne.
jeanlaurent
1
90
Other Decks in Programming
See All in Programming
11年かかって やっとVibe Codingに 時代が追いつきましたね
yimajo
1
260
No Install CMS戦略 〜 5年先を見据えたフロントエンド開発を考える / no_install_cms
rdlabo
0
480
Amazon Q CLI開発で学んだAIコーディングツールの使い方
licux
3
180
Claude Code と OpenAI o3 で メタデータ情報を作る
laket
0
130
大規模FlutterプロジェクトのCI実行時間を約8割削減した話
teamlab
PRO
0
460
Strands Agents で実現する名刺解析アーキテクチャ
omiya0555
1
120
バイブスあるコーディングで ~PHP~ 便利ツールをつくるプラクティス
uzulla
1
330
ZeroETLで始めるDynamoDBとS3の連携
afooooil
0
160
AIのメモリー
watany
13
1.4k
なぜ今、Terraformの本を書いたのか? - 著者陣に聞く!『Terraformではじめる実践IaC』登壇資料
fufuhu
4
570
MCPで実現できる、Webサービス利用体験について
syumai
7
2.5k
実践 Dev Containers × Claude Code
touyu
1
170
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
301
21k
Practical Orchestrator
shlominoach
190
11k
Navigating Team Friction
lara
188
15k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
183
54k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
A Tale of Four Properties
chriscoyier
160
23k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
How GitHub (no longer) Works
holman
314
140k
Gamification - CAS2011
davidbonilla
81
5.4k
The Straight Up "How To Draw Better" Workshop
denniskardys
235
140k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Transcript
TESTING SUR CODE LEGACY Jean-Laurent de Morlhon
LEGACY CODE ? Un système en production Manque de maintenance
Manque de tests Customization Locking Pas de source
PYRAMIDE DES TESTS Tests unitaires Tests d'intégrations e2e 1-5% 5-15%
80-90% + - Temps Complexité Fragilité
PYRAMIDE DES TESTS 0-5% 5-15% 80-90% + - Temps Complexité
Fragilité e2e Tests d'intégrations Tests unitaires
INVERSER LA PYRAMIDE e2e Tests d'intégrations Tests unitaires Tests unitaires
Tests d'intégrations e2e Système legacy Système sous contrôle
INVERSER LA PYRAMIDE 4 règles du design simple Attitude Boy
Scout Rule Appropriation collective du code Politique de tests Design émergent
4 RÈGLES DU DESIGN SIMPLE 1.Tous les tests passent 2.Révèle
ton intention 3.Evite la duplication 4.Petites classes & petites méthodes
TOUT EST LIÉ
GILDED ROSE https://github.com/xebia-france/gildedrose-kata Exercice de refactoring sur legacy Par binôme
Tentez une technique Vous êtes la pour expérimenter, apprendre Pas pour "gagner" l'exercice. Niveau: moyen 1h30
CODE BASE c# https://github.com/NotMyself/GildedRose Objective-C https://github.com/isilien/GildedRose-Objc JavaScript, Ruby and more
https://github.com/emilybache/GildedRose-Refactoring-Kata