DEV Community

Discussion on: Why every developer should be using TDD

Collapse
 
munch141 profile image
Ricardo Münch • Edited

One important step I think is missing here is to make sure the test fails before writing any code, I often find myself writing tests that pass before implementing the feature, these tests have no real value and may even be counterproductive as you may end up with an incorrect implementation while thinking it's fine

Collapse
 
nombrekeff profile image
Keff

Nice point, many people forget about this, if a tests works first time I'm always worried and try to break the code to see if it's really working