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

I am certainly no religious follower of TDD, but I do think writing tests before code is useful.

The reason is simple: it tests your tests. I have many times found bugs in tests that made them always pass.



There is an even better way to test your tests - the mutation testing, for example http://pitest.org/. It also helps to find dead code, that doesn't have any impact on result any more.




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

Search: