Diaspar wrote in
I wish i's said it:
Well, Ron Jeffries Has HAS HONED HIS ANSWER, AND I WISH IWID SAID IT FIRST: I Refactor Now for Tests, Because I NEED TESTS NOW, NOT BECAUSE I Want The Code To Be Testable.
Although I have known TDD, there is no way to do it completely. I thought about it last night. The current reasons have this:
1. The current progress pressure is a little deformity, the coding process of the leadership requirements does not consider the "later" problem such as BUG rate;
2. The interface between DLL and the main program has no unit test, or even the problem that the unit test can solve?
3. Lack of powerful for delphi Mock tools, manual MOCK, others, super big interface is very painful.