It used to be a Java set of things, and Eclipse has everything taken care of. Now because of the need to use Delphi to change an instant messaging software, think of how to refactor and unit test that set to the Delphi side. Does the book say that adding unit tests to existing code can deepen the understanding of the code and serve as a basis for improving the code, which is not exactly what I'm going to do? So, in order to build such an agile platform, I made a little attempt with Delphi2005 and Dunit, and recorded the results to share with you.
1, download Delphi2005
Because Borland companies do not sell professional versions in China, they can only download a D version of their personal use from the network, given the sky-high price of architects and Enterprise editions. Delphi2005 volume is relatively large, and Update1 also need CDs, in order to avoid trouble I do not directly provide download address, interested friends can use Google search, will certainly have.
2, download the Delphi2005 SP1
It is said that after this patch can be faster, but the patch installed slow, but also need to use CD-ROM. The download address is as follows:
Http://www.delphifans.com/SoftView/970.html
3, download Dunit
https://sourceforge.net/projects/dunit/
4. Installation Delphi2005+sp1
Note that there is a register in the keygen and it doesn't matter if you install both the. NET and Win32 versions of the Delphi,c#builder. Because if only the Win32 version is installed, the refactoring feature will not be available (this is a bug for delphi2005, which shows up with the. NET Exception window with refactoring).
5. Streamline Delphi2005
Because the. NET version was installed at the same time in the previous step, the Delphi startup became very slow. This can be done by modifying the registry and deleting some of the IDE's packages. The specific approach is in the Delphi shortcut target after adding parameters-rxxx, that is, bds.exe-rxxx. This xxx is for you to specify, and then you will find those damn bags in hkey_current_user\software\borland\xxx (this is your chosen name, XXX) \3.0\known IDE packages. Note that it is not possible to delete the same as the other Win32 purified molecules on the network so that refactoring is useless. One of the more streamlined lists I've experimented with several times is as follows