TDD with AI pair programming

Working Effectively with Legacy Code and AI Coding Assistant - Michael Feathers

Topic 16 of 22

Published Oct 14, 2024 · Clip 43:43–45:19 (1:36)

Michael confirms he has done TDD with AI, often getting frustrated, and mentions Llewellyn Falco's videos demonstrating it further. Giving AI a whole batch of tests at once tends to work reasonably well since you can run tests to verify, but incrementally adding tests while asking it to satisfy all previous ones is currently problematic due to context window issues. He suggests a valuable exercise: delete a project's source and have AI regenerate it from tests—gaps reveal coverage holes—and believes TDD will still be around.