1

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 pointers! Thanks

mistr47
  • 61
  • 5
  • Does cFix have an xml output option? – Sagar May 18 '11 at 16:26
  • Im afraid there is not! But i can format the output text to xml ... Is there some specifi format/schema recognized by jenkins ? What to do after i have converted the cFix output to XML? – mistr47 May 19 '11 at 09:13

2 Answers2

4

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>
mistr47
  • 61
  • 5
1

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.

Sagar
  • 9,456
  • 6
  • 54
  • 96