Delphi XE4 Testing Tool

what are the unit testing options in delphi XE4? I'm trying to use DUnit, but it seems that it did not have an official version for XE4, and the source did not compile

+6
source share
3 answers

Delphi has been around for a long time, but XE4 is no different, comes with DUnit. You must make sure that you select it in the settings.

The version that ships with Delphi is already updated to work with the version of Delphi that comes with it. Looking at the DUnit sourceforge project, it looks pretty moderate. The last commit in the SVN archive, which mentions Delphi versions, refers to Delphi 2009. Therefore, it seems to me that it is best to stick with the version that comes with Delphi.

+7
source

You might be interested in the module testing features available through our mORMot Open Source platform. See fooobar.com/questions/98013 / ....

In addition to unit testing with classes, like DUnit , you have a whole mocking / stubbing framework .

The use of interfaces in the SOLID context is therefore more integrated into this structure than with DUnit. For example, the mocking interface directly refers to a test case, so it can be integrated into a unit test suit.

It works great with Delphi XE4, both on 32-bit and 64-bit Windows platforms.

+5
source

There is a new DUnitX project. It is designed to take advantage of the new language and structure features and works with Delphi 2010 and later.

There is still a lot of work, but it is currently active, and you will probably recognize some of the people who work on it.

+4
source

Source: https://habr.com/ru/post/948996/


All Articles