Ted Young - Refactoring Tests
Details
Tests are code, too, but don't get as much attention as production code, often leaving messy, hard to understand tests. Poorly factored tests can also make refactoring production code that much harder.
In this session, we'll start with what we need from a good test, using AssertJ and JUnit features to make it readable and maintainable. We'll walk up the ladder from Helper methods, shared Factory Methods, all the way to Test Data Builders, using automated refactoring tools to easily make the transition. We'll look at test "smells" and how to repair them, using Parameterized Tests, finishing with how to "retarget" your tests when extracting a new production class from existing code.
Ted M. Young (also known as "JitterTed") is a Java technical coach, speaker, and author. He's been in software development for over 30 years, and has been an advocate of eXtreme Programming practices since 2000.
Ted loves helping those new to the industry, as well as experienced folks, increase their joy in coding by showing them how to make their code more testable. His favorite learning technique is Ensembling, used for teaching test-driven development (TDD), refactoring, domain-driven design, and Testable Architectures through hands-on experiences.
Ted is also the creator of the acclaimed "JitterTed's TDD Game" used at events and companies worldwide to help people understand the benefits and nuances of TDD in a fun way.
We are a dedicated group of coding professionals that strive to learn and get better at our trade. We have monthly virtual talks on a range of different topics.
Topic: TBD
Zoom meeting opens around 9:30 AM PT
Zoom Presentation starts at 10:00 AM PT
