[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test results as XML files


You might want to look at CppUTest. It produces junit like output for CI.


James Grenning                  Author of TDD for Embedded C
www.wingman-sw.com              http://pragprog.com/titles/jgade/

On 23 Jun 2014, at 11:11, Krzysztof Tomasz Lebioda wrote:


I am trying to find an appropriate unit testing framework for our project. I find the cmocka with it's mocking capabilities to be very promising. I wrote some tests and I really like the concept. There is one thing that I would like to ask about, though.

We would like to run our unit tests as a part of the nightly build. Continuous integration tools, like Jenkins or Bamboo (which we use), often offer test result reporting and error highlighting. For this they should be supplied with some XML files which contain the test results. From what I know, the JUnit format is supported out of the box, at least by the two continuous integration tools mentioned before.

It would be really nice if cmocka could create XML reports using some well-known format (like JUnit). The framework would be complete then. Do you plan to add such functionality? Maybe there are some tools out there which could parse the cmocka output and create proper XML files?

Best regards,

Test results as XML filesKrzysztof Tomasz Lebioda <klebioda@xxxxxxx>