> Markdown version of [/videos/309-how-to-tdd-in-legacy-code?t=151](https://www.wearedevelopers.com/videos/309-how-to-tdd-in-legacy-code?t=151). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # How to TDD in legacy code Does your old codebase resist test-driven development? Discover how characterization tests and strategic pre-refactoring can safely untangle complex anti-patterns and bring TDD to legacy systems. - **Speakers:** Gil Zilberfeld - **Event:** JavaScript Congress - **Published:** November 24, 2021 - **Duration:** 45:43 - **URL:** https://www.wearedevelopers.com/videos/309-how-to-tdd-in-legacy-code - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/2b7e0268484ce27873160dc7a2fc68e0/thumbnails/thumbnail.jpg?time=65585ms ## Access Playback and chapters for this video are available with a Free account. ## Related Moments - [Building test infrastructure for existing legacy projects](https://www.wearedevelopers.com/videos/704-testing-net-applications-a-tool-box-for-every-developer) (from "Testing .NET applications a Tool box for every developer") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/3de9f487177b32627f591bcafade15a0/thumbnails/thumbnail.jpg?time=259250ms - [Identifying scenarios where strict test driven development limits agility](https://www.wearedevelopers.com/videos/439-yes-you-need-to-unit-test-your-javascript-here-s-how) (from "Yes, You Need to Unit Test your JavaScript. Here's How.") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/00da2bc6e70a8eefa84aff9372f1af0d/thumbnails/thumbnail.jpg?time=72900ms - [Navigating legacy projects lacking existing unit tests](https://www.wearedevelopers.com/videos/1642-how-unit-testing-saved-my-career) (from "How Unit Testing Saved My Career") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/05325fde7e3826d3828ed9a54e9f0fbe/thumbnails/thumbnail.jpg?time=108135ms - [Navigating legacy systems and unconventional software testing practices](https://www.wearedevelopers.com/videos/557-iot-the-road-to-sustainability) (from "IoT: The road to sustainability") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/b54b0250ab9b8a49edfa887dd538f0c3/thumbnails/thumbnail.jpg?time=198600ms - [Adopting test-driven design as a strategic development methodology](https://www.wearedevelopers.com/videos/446-treat-yourself-a-tale-about-dog-training-and-test-driven-development) (from "Treat yourself - A tale about dog training and test-driven development") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/546f4cb50651827a84b52494c92d80e5/thumbnails/thumbnail.jpg?time=253800ms - [Understanding the fundamental test-driven development loop](https://www.wearedevelopers.com/videos/1037-breaking-the-bug-cycle-tdd-for-the-win) (from "Breaking the Bug Cycle: TDD for the Win") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/696c13f2510710f95306147e92848dc0/thumbnails/thumbnail.jpg?time=120545ms ## Related Articles - [Get Old, go Slow, Write Code!](https://www.wearedevelopers.com/magazine/81-get-old-go-slow-write-code) - [How to Avoid Over-Engineering](https://www.wearedevelopers.com/magazine/546-how-to-avoid-over-engineering) - [The real reason we document our code](https://www.wearedevelopers.com/magazine/518-the-real-reason-we-document-our-code) - [How to Lead Quality Teams Through AI Transformation](https://www.wearedevelopers.com/magazine/791-how-to-lead-quality-teams-through-ai-transformation) ## Related Jobs - [Bank Platform Transformation - Test Execution Leader - Sr Associate](https://www.wearedevelopers.com/jobs/ext/4565109-bank-platform-transformation-test-execution-leader-sr-associate) at **PwC** - [Bank Platform Transformation - Test Execution Leader - Sr Associate](https://www.wearedevelopers.com/jobs/ext/4558482-bank-platform-transformation-test-execution-leader-sr-associate) at **PwC** - [Principal Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/3926064-principal-software-engineer-copilot-code-review) at **GitHub** - [Staff Software Engineer, GitHub Actions](https://www.wearedevelopers.com/jobs/ext/4524399-staff-software-engineer-github-actions) at **GitHub** - [Software Development Engineer 1](https://www.wearedevelopers.com/jobs/48592-software-development-engineer-1) at **WEX** - [Senior Web Software Architect, AI Experiences](https://www.wearedevelopers.com/jobs/ext/4523834-senior-web-software-architect-ai-experiences) at **TeamViewer Germany GmbH**