简体   繁体   English

DunitX和FinalBuilder

[英]DunitX and FinalBuilder

I have both C++ and Delphi tests in DunitX. 我在DunitX中同时进行了C ++和Delphi测试。 I am trying to get it to Build in FinalBuilder. 我正在尝试将其构建到FinalBuilder中。 C++ tests builds fine, but Delphi tests has the error: C ++测试构建良好,但是Delphi测试有错误:

"Error creating cfg file: C:\Tests.cfg Error expanding variables in Library Path : [Expression Error]: Variable\Object "DUnitX" does not exist! [$(DUnitX.);$(BDSLIB)\Win32\rele]

The FinalBuilder does not have a DunitX action, but has Dunit and NUnit ones. FinalBuilder没有DunitX动作,但是具有Dunit和NUnit。 For both C++ and Delphi ones the action is Build. 对于C ++和Delphi而言,操作都是Build。 Thoughts on FinalBuilder integration appreciated. 对FinalBuilder集成的想法表示赞赏。

IDE: RAD Berlin 10.1 IDE:RAD柏林10.1

FinalBuilder: 8 FinalBuilder:8

Open the failing project and look into the project options 打开失败的项目并查看项目选项

Delphi Compiler -> Search path for any Target might contain $(DUnitX.) <- notice the dot Delphi编译器->任何目标的搜索路径可能包含$(DUnitX。)<-注意点

Make sure to remove the dot and make sure that you have the DUnitX environment variable set - for additional information see this article: https://www.finalbuilder.com/resources/blogs/postid/702/dunitx-has-a-wizard 确保删除点并确保设置了DUnitX环境变量-有关其他信息,请参见本文: https : //www.finalbuilder.com/resources/blogs/postid/702/dunitx-has-a-wizard

If you are using the DUnitX version that ships with Delphi you can just remove the $(DUnitX.) from the search path as the DUnitX sources should be in the BDSLib directory. 如果您使用的是Delphi附带的DUnitX版本,则只需从搜索路径中删除$(DUnitX.) ,因为DUnitX源应位于BDSLib目录中。

However keep in mind that when you create new DUnitX projects via the Wizard it adds that variable to the project (that is probably where it came from originally) which then might again fail when building with FinalBuilder. 但是请记住,当您通过向导创建新的DUnitX项目时,它会将变量添加到项目中(这可能是它最初的来源),然后在使用FinalBuilder进行构建时可能再次失败。 I don't know how it behaves without that wrong dot if the variable does not exist. 如果变量不存在,我不知道没有错误点的行为。

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

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