Agile Mentors Podcast from Mountain Goat Software

#161: Test-Driven Development in the Age of AI with Clare Sudbery

Oct 8, 2025
Clare Sudbery, an independent technical coach and TDD advocate, dives into the evolving landscape of test-driven development in the age of AI. She emphasizes the risks of blindly trusting AI-generated code, highlighting how TDD serves as a critical safety net. Clare discusses the unreliability of AI outputs and the importance of human oversight in testing practices. With insights on ethical AI usage and the need for developers to slow down, she sheds light on maintaining quality in software development amidst rapid technological changes.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

TDD As A Design-Driving Safety Net

  • Test-driven development (TDD) starts by writing tiny, failing tests before code to drive design and correctness.
  • TDD gives fast feedback and safety by proving each small change makes tests pass and doesn't break others.
INSIGHT

AI's Probabilistic Nature Creates Risk

  • GenAI is probabilistic and non-deterministic, so generated code can be unreliable and hallucinatory.
  • That unreliability makes testing and human judgment more essential, not less, when using AI-generated code.
ADVICE

Use AI As A Draft, Then Inspect Carefully

  • Use AI for drafting tests or code snippets when learning new frameworks, but always review and understand the output.
  • Prefer experienced developers to vet AI output, since juniors may accept flawed results without noticing issues.
Get the Snipd Podcast app to discover more snips from this episode
Get the app