Looks like DUNIT is already integrated under Delphi XE. But I can't find it. My questions are:

  1. How can I access it? Do I have to install it manually? I don't remember Delphi setup to ask me if I want to install DUnit.
  2. If I have to install it manually, is it better to download the latest version from sourceforge.net or maybe the version delivered by Embarcadero (on Delphi's CD) (if it exists) integrates better with Delphi?

Update:
I purchased Delphi without CD (the downloadable version). Maybe it is smaller than the version delivered on CD so some tools like DUnit are not included?

有帮助吗?

解决方案

dUnit is usually installed with Delphi XE, and you can start a new test project from within the IDE.

For example, launch IDE Insight by pressing Ctrl. and then start writing test project, you'll get:

enter image description here

Press enter and you'll be presented an expert to configure your test project using DUnit.

其他提示

You can always get dunit from sourceforge:

http://sourceforge.net/projects/dunit/

The latest changes are some merges from the embarcadero repository. However, most major updates seem to be from an era before stuff like generics, anonymous functions and operator overloaders existed.

http://sourceforge.net/projects/dunit3/
Here is DUnit for Embarcadero RAD Studio XE

Ok. Found it. I can create a DUnit file from:

File -> New -> Other... -> Delphi projects -> Delphi files -> Dunit.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top