Jenkins tests reports analyzer integration with catch
<p>I've recently started working with Jenkins to automatically build my c++ project and run my tests (I'm using catch.cpp). </p>

<p>I wanted some sort of a table of test run time and status and that led me to the "Test Results Analyzer" Plugin for Jenkins. </p>

<p>I have my builds run like this: 
<a href="https://i.stack.imgur.com/MFPY7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MFPY7.png" alt="running the tests"></a></p>

<p>And you can see they actually run in the console output:
<a href="https://i.stack.imgur.com/mE3r0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mE3r0.png" alt="build console output"></a></p>

<p>finally, my test results analyzer plugin shows nothing: 
<a href="https://i.stack.imgur.com/KxHCr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KxHCr.png" alt="no tests on the plugin page"></a></p>

<p>It looks like the plugin does not recognize that these are my tests. Which is reasonable since I've only told jenkins to execute these commands and i don't think it's smart enough to understand these are the tests to report. But i could not find how to tell "Test Reports Analyzer" what are the tests it needs to report. </p>

<p>My question is how do i get a table of tests like in the Plugins webpage: </p>

<p><a href="https://wiki.jenkins-ci.org/display/JENKINS/Test+Results+Analyzer+Plugin" rel="noreferrer">Tests Reports Analyzer</a></p>

<p><strong>Solution:</strong></p>

<p>Jenkins needs a Junit format xml file of the test results. </p>

<p>specifically, in Catch.cpp this is achieved by the "-r junit" command line option. </p>

<p>after this i needed to configure jenkins to "Publish JUnit test result report" post-build action and git it a path to the output xml file i create with my "make test" command. </p>