How to Test Legacy Code (Emily Bache)

  Рет қаралды 1,177

Tech Excellence

Tech Excellence

Күн бұрын

You need good tests before you can refactor legacy code. It’s easy to spend absolutely ages on that part. Unfortunately these kinds of unit tests often turn out to be not that useful and can miss refactoring mistakes you make. In this session I’d like to show another approach to writing tests for legacy code. I’ll demonstrate how it works using the Gilded Rose refactoring kata and explain the theory using Kent Beck’s test Desiderata.
Outline
- What is legacy code
- Writing unit tests for legacy code
- The tests you want to write and why you can’t
- Demo: Combination Approvals
- Theory: Composable and Specific Desiderata
- Conclusions
ABOUT EMILY
Emily Bache is an independent consultant, KZfaqr and Technical Coach. She works with developers, training and coaching effective agile practices like Refactoring and Test-Driven Development. Emily has worked with software development for 25 years, written two books and teaches courses on platforms including Pluralsight and O'Reilly.
A frequent conference speaker, Emily has been invited to keynote at prestigious developer events including EuroPython, Craft and ACCU. Emily founded the Samman Technical Coaching Society in order to promote technical excellence and support coaches everywhere.
- LinkedIn: / emilybache
- Twitter: / emilybache
- GitHub: github.com/emilybache
- Mastodon: sw-development-is.social/web/...
- Website: bacheconsulting.com/
- KZfaq: / @emilybache-tech-coach
TECH EXCELLENCE
- Subscribe to our KZfaq channel / @techexcellence
- Join our Meetup Group www.meetup.com/techexcellence
- Follow us on LinkedIn / techexcellenceio
- Follow us on Twitter / techexcellence_
- Join our Discord Community / discord
TIMESTAMPS
0:00 Intro
2:09 Agenda
3:35 About me
5:31 Working with Legacy Code
7:19 Code Demo Gilded Rose
8:47 What are good tests?
11:49 Approach #1: Unit Tests
19:37 Approach #2: Rewrite
30:32 Approach #3: Combination Approvals
58:06 Live Q&A
#testdrivendevelopment #tdd #unittesting #testing #testautomation #refactoring #softwareengineering #agile #techexcellence

Пікірлер: 1
@TechExcellence
@TechExcellence 2 ай бұрын
This is the Gilded Rose github repo: github.com/emilybache/GildedRose-Refactoring-Kata
Clean Code with AI (Maximiliano Contieri)
1:33:00
Tech Excellence
Рет қаралды 769
Add APPROVAL TESTING To Your Bag Of Tricks
19:23
Continuous Delivery
Рет қаралды 15 М.
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 64 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 2,6 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
[VDBUH2024] - Victor Rentea - Code Smells - Hall of Fame
45:42
Micro-decisions in Software Design (Javier Lopez)
1:31:31
Tech Excellence
Рет қаралды 731
Modular Monoliths Are The New Microservices
31:08
TaleLearnCode
Рет қаралды 23 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
From the Vault: Sizzling Steyn rips through Aussies
4:00
cricket.com.au
Рет қаралды 4,5 МЛН
Types Of Technical Debt And How To Manage Them
17:58
Continuous Delivery
Рет қаралды 51 М.
DDD - Service Boundaries (Adam Ralph)
1:31:35
Tech Excellence
Рет қаралды 793
Best Tests for Gilded Rose Kata | Kent Beck’s Desiderata
17:40
Emily Bache
Рет қаралды 2,2 М.
The Easy Way to Test Legacy Code in C#
10:56
Gui Ferreira
Рет қаралды 2,4 М.
TDD Anti-Patterns (Emmanuel Valverde Ramos & Matheus Marabesi)
1:32:03
Tech Excellence
Рет қаралды 1,1 М.
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 59 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 958 М.
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 106 М.
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 8 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,5 МЛН