简体   繁体   English

FinalBuilder Server + FastMM4示例

[英]FinalBuilder Server + FastMM4 example

使用FinalBuilder服务器进行持续集成时 - 基于FastMM内存泄漏检查,建议运行一系列单元测试并建立构建通过/失败的方法是什么?

Newer versions of DUnit optionally link in FastMM4 and check for memory leaks after every test. 较新版本的DUnit可选择在FastMM4中链接,并在每次测试后检查内存泄漏。 This is visible in the GUI as an menu item. 这在GUI中作为菜单项可见。

As DUnit is open source, I guess this feature can also be used in a command-line test (TextTestrunner). 由于DUnit是开源的,我想这个功能也可以用在命令行测试(TextTestrunner)中。

Also, DUnit can return an exit code if tests fail, so Finalbuilder only needs to check the exit code: 此外,如果测试失败,DUnit可以返回退出代码,因此Finalbuilder只需要检查退出代码:

TextTestRunner.RunRegisteredTests(rxbHaltOnFailures);

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

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