installing DUnitX under C++ builder

188 views Asked by At

How to install DUnitX under C++ builder?

I am working with Version 10.2.3. and I can't find any hints to use this testing framework in my projects.

2

There are 2 answers

0
Hoeh On

Problem solved. I made a mistake when I installed my update.

0
Ludwig Schulze On

For the specific C++Builder version addressed in the question, 10.2.x:

Installation: The C++Builder installer for 10.2 lets you select components to install during the installation. DunitX is one of the selectable components.

Usage: Embarcadero documents how to use DunitX with C++Builder 10.2 here in the overview page (archived here).

However, in 2022, the current C++Builder Release 11 (11.1, 11.2) no longer supports using DunitX with C++, so you might want to consider using another unit testing framework. See Embarcadero's note on the same documentation page for the current release (archived here):

Note: DUnitX uses Delphi language features that are not supported in C++. For C++ developers, DUnit is the best tool. C++ can also be tested using other frameworks such as Google Test, available via GetIt Package Manager.