3 ms·
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 f
by petters 10y ago
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.
- ucho 10y agoThere is an even better way to test your tests - the mutation testing, for example http://pitest.org/ http://pitest.org/. It also helps to find dead code, that doesn't have any impact on result any more.