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
120
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
110
Retour sur DockerCon 2016
jeanlaurent
2
190
Pourquoi Maurice ne doit surtout pas coder en Go.
jeanlaurent
0
150
Diamond Kata Workshop
jeanlaurent
0
180
FruitShop
jeanlaurent
3
780
Phantom, Zombie & Karma, overview of the greatest testing tools for modern web app
jeanlaurent
5
740
Live Coding Tester une Application HTML5
jeanlaurent
1
82
Testing sur Legacy Code
jeanlaurent
1
50
Le fantome, le zombie et testacular Karma. Panorama des outils de tests pour application web moderne.
jeanlaurent
1
80
Other Decks in Programming
See All in Programming
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
450
try! Swift Tokyo 2024のLT枠に採択されたプロポーザルを出すときに考えていたこと
ski
0
350
Fragment Composition of GraphQL
quramy
3
550
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
410
Site Reliability Engineering for GMO
pyama86
7
1k
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
220
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
910
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
Node.js v22 で変わること
yosuke_furukawa
PRO
5
1.9k
コーンフレークから始める モデリング会話入門
ogurotakayuki
0
360
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.7k
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
720
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
31
46k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
30
6k
Documentation Writing (for coders)
carmenintech
60
3.9k
Visualization
eitanlees
136
14k
What's in a price? How to price your products and services
michaelherold
237
11k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Into the Great Unknown - MozCon
thekraken
10
990
Automating Front-end Workflow
addyosmani
1356
200k
The Cult of Friendly URLs
andyhume
74
5.7k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
227
16k
Happy Clients
brianwarren
92
6.4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
125
32k
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