The Bike Shed cover image

381: To TDD or Not to TDD?

The Bike Shed

00:00

How to Test After a Refactor Step

Tests only have value when they fail and a test that never fails has no value. So TDD has this red green refactor cycle. I feel like you could probably come up with a cute slogan like that for a testing after style. If you are testing after, you know, your backfilling tests for code you wrote. And so you're writing your tests kind of colored with that in mind. It's important that you see the code fail and that you see it pass after the change.

Play episode from 31:11
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app