<div dir="ltr"><p>I would like to send the results of my C/C++ unit tests to 
CDash server and see all of them, not just the aggregated result 
produced with an <code>add_test</code> command in the <code>CMakeLists.txt</code>.</p>

<p>If I include all my tests in a single executable, a CMake <code>add_test</code> command will only show one test, and so does CDash.</p>

<p>I use <a href="https://code.google.com/p/googletest/" rel="nofollow" target="_blank">Google Test unit testing framework</a>. I have found a workaround with a <a href="http://www.cmake.org/cmake/help/v3.0/module/FindGTest.html" rel="nofollow" target="_blank">GTest CMake macro: GTEST_ADD_TESTS</a>, that creates a <code>add_test</code>
 command for each of unit test. It works fine, however execution times 
increases a lot, because of the large number of calls to the unit 
testing program.</p>

<p>So my question is how to send a JUnit XML result file (generated with
 a Google Test program for example) to a CDash server, so that all tests
 appear in CDash?</p>

<p>Apparently, it is possible to do it with <a href="http://www.vtk.org/Wiki/CDash:XML#CDash_with_JUnit" rel="nofollow" target="_blank">CDash</a> 2.2.* , but I could not find out how it was working</p>

<p>PS1: I know <a href="http://stackoverflow.com/questions/6329215/how-to-get-ctest-results-in-hudson-jenkins" target="_blank">some people</a> have tried to convert the XML CTest test file to XML JUnit for Jenkins integration.</p><p>PS2: I have asked this question on stackoverflow also</p><p><a href="http://stackoverflow.com/questions/27459551/how-to-send-a-junit-result-file-to-cdash-server-with-ctest" target="_blank">http://stackoverflow.com/questions/27459551/how-to-send-a-junit-result-file-to-cdash-server-with-ctest</a><br></p><p><br></p><p>Best regards</p><p>Guillaume Jacquenot<br></p><p><br></p></div>