Jenkins and cFix unit testing (C++)

前端 未结 2 710
一生所求
一生所求 2021-01-25 00:25

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?

Any poi

相关标签:
2条回答
  • 2021-01-25 01:01

    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>
    
    0 讨论(0)
  • 2021-01-25 01:05

    If you can convert your output to the JUnit XML output format, Jenkins should be able to read it for you. You can find the JUnit format all over Google, and if needed, you can see the stylesheet on the website below.

    We were using Cunit, which has XML output, but not a standard that Jenkins understands, and so I did was follow this website. That stylesheet should be able to help you understand the JUNit format too.

    0 讨论(0)
提交回复
热议问题