Jenkins 和 cFix 单元测试 (C++)

有人使用 cFix (Visual Assert) 和 Jenkins CI 吗?如何设置?如何通过 Jenkins 执行 C++ 项目测试(Testt Framework cFix{isualAssert)?

Has anyone used cFix (Visual Assert) along with Jenkins CI? How to set it up? How can i execute C++ Project Tests (Testt Framework cFix{isualAssert) via Jenkins?

任何指针!谢谢

推荐答案

我写了一个小程序将cFix输出转换为XML.我使用了 jenkins 识别的最简单的 Junit XML 格式作为我的程序输出.

I wrote a small program to convert cFix output to XML. I used the simplest Junit XML format recognized by jenkins for my program output.

<?xml version="1.0" encoding="UTF-8"?>
<testsuite>
   <testcase name="TestIsOpen" classname="A.B">
      <error type="error">Details</error>
   </testcase>
   <testcase name="TestAcceptDialPassed" classname="A.C">
   </testcase>  
   <testcase name="TestAcceptDialSkipped" classname="A.C">
      <skipped>wrong version</skipped>
   </testcase>
</testsuite>

相关文章