DEV Community

Discussion on: Are you any good at TDD?

Collapse
 
d_ir profile image
Daniel Irvine πŸ³οΈβ€πŸŒˆ

I spike a lot (i.e., write code without tests) until I have an elegant design figured out. Strict TDD would then have you scrap that solution and re-write it with tests, but you may just want to test after instead. If you’re doing it that way you have to be very critical as you comb through your existing solution for untested behavior. (That’s one occasion when a locally-run code coverage tool is useful).