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
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Testing sur code legacy
Jean-Laurent de Morlhon
July 09, 2014
More Decks by Jean-Laurent de Morlhon
See All by Jean-Laurent de Morlhon
Retour Sur DockerCon 2016 - Docker Mega Meetup
jeanlaurent
1
140
Retour sur DockerCon 2016
jeanlaurent
2
220
Pourquoi Maurice ne doit surtout pas coder en Go.
jeanlaurent
0
190
Diamond Kata Workshop
jeanlaurent
0
200
FruitShop
jeanlaurent
3
860
Phantom, Zombie & Karma, overview of the greatest testing tools for modern web app
jeanlaurent
5
780
Live Coding Tester une Application HTML5
jeanlaurent
1
110
Testing sur Legacy Code
jeanlaurent
1
73
Le fantome, le zombie et testacular Karma. Panorama des outils de tests pour application web moderne.
jeanlaurent
1
110
Other Decks in Programming
See All in Programming
The NotImplementedError Problem in Ruby
koic
1
990
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
280
コンテキストの使い捨てをやめる — ビジネスルール駆動開発と miko —
ioki
0
250
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
Mujeres en SEO Summit 2026 - Greatest Disaster Hits en Web Performance
guaca
0
210
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
140
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.7k
才能?センス?知らん、 続けたもん勝ちだ。-- 結婚・出産・癌を越えてなお、私がプロダクトを創り続ける理由
16bitidol
1
590
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
800
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
220
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
210
Creating Composable Callables in Contemporary C++
rollbear
0
170
Featured
See All Featured
It's Worth the Effort
3n
188
29k
Prompt Engineering for Job Search
mfonobong
0
360
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
Thoughts on Productivity
jonyablonski
76
5.2k
Faster Mobile Websites
deanohume
310
32k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
640
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
550
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
200
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
170
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
230
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
870
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