Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I thought at least in TDD your tests could “never be wrong” since you have to write code that makes the tests pass, not vice versa


I practice TDD frequently (whenever suitable).

The tests are wrong 70% of the time. Either a silly mistake, the design wasn't conceptualized properly (or was changed), or just plain bad code.

If you're tackling your suite one test at a time, and committing code that solves just that test, seeing it fail and then pass, and thinking about why, everything will be fine. If you batch things, or don't debug success, you'll ultimately be buggy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: