0

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.

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Hoeh
  • 45
  • 4
  • C++Builder has it's own tags. C++ and Builder as separate tags are totally different things. I've corrected them for you, but you should remember that for the future. :-) – Ken White Nov 08 '18 at 23:57

2 Answers2

2

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.

Ludwig Schulze
  • 2,155
  • 1
  • 17
  • 36
-1

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

Hoeh
  • 45
  • 4