Skip to content
0:00 / 0:00

#legacycode#refactoring#unittesting

Testing and Refactoring Legacy Code

IntelliJ IDEA, a JetBrains IDE

135K subscribers • 10 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Sandro Mancuso

Intermediate. Assumes working knowledge.

31K views4 years ago1 recommendation

Tools and practiceSoftware designTestingRefactoring and legacy code

Sandro Mancuso demonstrates techniques for retrofitting unit tests to legacy code and refactoring it to clarify business logic.

Use this link to register for the live stream: info.jetbrains.com/idea-webinar-december15-2021.html There are many challenges in retrofitting unit tests to legacy code, including hard-wired dependencies and isolating the unit under testing without breaking the rest of the system. Knowing where to start and being able to create the tests and production code is challenging in a messy codebase. In this live coding session, Sandro will present many techniques that will help you to efficiently retrofit tests to legacy code and then refactor it to show the business logic more clearly. Speaker: Sandro Mancuso

Why it's here

1 person recommends this

What people say. Recommended as a resource for learning how to write tests for legacy codebases.

u/burhanrashid52in r/FlutterDev • Recommends

Would you be interested in an in-depth course about writing tests for legacy code in Flutter? Legacy code is code without a test. In the existing project, we mostly spent 70-80% of the time maintaining code. And test acts as a safety net for our code. But how do we work with a code which does not have any tests? Writing test for legacy code is tricky. However, once we understand the basic principles, we can write tests with legacy code using techniques like Extracting interface, Extract and overriding the method, breaking dependencies with dependency injection. And also use these techniques to write effective units, widgets, golden(screenshot), and end-to-end tests in Flutter. Ther…