开发者

Tips and tricks for test-first development

Just read this blog post - Help! I’m Terrible At Migrating/Restructuring Code In A Test-First Manner. I've had similar experiences, and thought开发者_开发知识库 I'd try an open it up to the wider community ...


I am using TFD – Test First development in a data migration project. I realize until you understand well the philosophy of TFD and the testing tool the development tend to be slow. But when you need to change your develop code you see the big benefits of TFD. I think in TFD are tow rules that you always must not to break:

  • Treat your testing code as first citizen. Clean code and always refactoring your testing code
  • Never write code until you have a breaking test and implement the simplest code to pass your test.

If you always respect hose rules then is all about practice TFD.

For me I think I never again code without having a fail test.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜