简体   繁体   English

在 C++ 构建器下安装 DUnitX

[英]installing DUnitX under C++ builder

How to install DUnitX under C++ builder?如何在 C++ builder 下安装 DUnitX?

I am working with Version 10.2.3.我正在使用版本 10.2.3。 and I can't find any hints to use this testing framework in my projects.而且我找不到在我的项目中使用这个测试框架的任何提示。

Problem solved. 问题解决了。 I made a mistake when I installed my update. 安装更新时我犯了一个错误。

For the specific C++Builder version addressed in the question, 10.2.x:对于问题中解决的特定 C++Builder 版本,10.2.x:

Installation: The C++Builder installer for 10.2 lets you select components to install during the installation.安装:10.2 的 C++Builder 安装程序允许您在安装期间安装 select 组件。 DunitX is one of the selectable components. DunitX 是可选组件之一。

Usage: Embarcadero documents how to use DunitX with C++Builder 10.2 here in the overview page ( archived here ).用法:Embarcadero 在概述页面此处存档)中记录了如何将 DunitX 与 C++Builder 10.2 一起使用。

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.但是,在 2022 年,当前的 C++Builder Release 11(11.1、11.2)不再支持将 DunitX与 C++ 一起使用,因此您可能需要考虑使用另一个单元测试框架。 See Embarcadero's note on the same documentation page for the current release ( archived here ):请参阅 Embarcadero 在当前版本的同一文档页面上的注释( 在此处存档):

Note: DUnitX uses Delphi language features that are not supported in C++.注意:DUnitX 使用 Delphi 语言功能,在 C++ 中不受支持。 For C++ developers, DUnit is the best tool.对于 C++ 开发人员来说,DUnit 是最好的工具。 C++ can also be tested using other frameworks such as Google Test, available via GetIt Package Manager. C++ 也可以使用其他框架进行测试,例如 Google Test,可通过 GetIt Package Manager 获得。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM