开发者

Update DUnit on Delphi 2010

开发者 https://www.devze.com 2023-03-11 20:08 出处:网络
Does anyone know how to update dUnit which comes with Delphi 2010 to the latest svn sour开发者_JAVA技巧ce code?Steps

Does anyone know how to update dUnit which comes with Delphi 2010 to the latest svn sour开发者_JAVA技巧ce code?


Steps

  • Goto http://sourceforge.net/projects/dunit/
  • Download the zip file (currently version 9.3.0)
  • Unpack to a folder of your choice
  • Use Components|Install packages to remove the current DUnit package bpl.
  • Compile and install (optional) the new version. Compilation is needed only if you want to install the design time wizards or if you do not build your projects using the source. Installation is only needed if you want to use the design time wizards. Read the various doc and readme files for further instructions.
  • Update your environment's library path and the search paths of projects using DUnit:
    • take out any references to $(BDS)\source\DUnit*
    • put in a reference to the src subfolder of where you installed the new version

Update

The latest version on sourceforge is 9.3.0, but that is not the latest DUnit version. To get the latest DUnit version, you can go to its SVN repository: https://dunit.svn.sourceforge.net/svnroot/dunit/trunk/

The are at 9.4.0 (revision 41 according to the top of the page, version found in readme-9.4.txt and release.ini).

The sources found there do not contain any packages for Delphi versions past D7, but as mentioned in my response to Serg, these packages are for the DUnitWizards which were contributed from outside the main DUnit project. To use DUnit, you don't need these wizards. In fact, DUnit itself does not have any packages!

I think you can still use the wizards (or should I say project/unit templates) that come standard with Delphi and just make sure that your library and search paths point to the new version... In fact, I know you can, because that is what I did a couple of days ago: use the File|New|Other|Unit test| project and unit templates that come standard with the IDE, but compile against the newest sources downloaded from SVN.


You can either unregister current DUnit package by removing its key from Registry:

HKCU\Software\CodeGear\BDS\7.0\Known IDE Packages\$(BDS)\Bin\unittestide140.bpl

Then download and install the new version from any folder you want, into the IDE as you install any other IDE package.

Or you build the new version, copy the generated BPL file to $(BDS)\bin\ folder, and its .DCU files to $(BDS)\Lib\ folder, and replace $(BDS)\Source\DUnit folder with the source folder you downloaded from SVN.

0

精彩评论

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

关注公众号