Tips and tricks for test-first development

283 Views Asked by At

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 ...

1

There are 1 best solutions below

0
On

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.