Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update DUnit on Delphi 2010

Tags:

svn

delphi

dunit

Does anyone know how to update dUnit which comes with Delphi 2010 to the latest svn source code?

like image 890
Rafael Colucci Avatar asked Jun 07 '11 16:06

Rafael Colucci


1 Answers

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.

like image 88
Marjan Venema Avatar answered Nov 05 '22 18:11

Marjan Venema