Publish Google test's XML report

2,654 views
Skip to first unread message

Rohini Pangrikar

unread,
Apr 27, 2012, 12:55:46 AM4/27/12
to googletes...@googlegroups.com
Hi,

I would like to publish the XML report generated by Google Test in Jenkins. Can you please guide me about how to publish the Google Test generated XML report?

 

I am building my project in Visual Studio. I just want to publish the test report using Jenkins/Hudson (or any other utility that can parse and publish the XML test report).

 

Following is what I did in Jenkins:

Installed Jenkins (as a service) on my Windows 7 machine. I installed the xunit plugin in Jenkins. Then created a (dummy) new job (build style software project). Configured the job to publish the JUnit test result report. Copied the Google Test generated xml report (report1.xml) in the Jenkins workspace. No other options were changed in the job config. Saved the job and built the job. The build fails (expected?), but the  test results were not published, got the following message in the log file:

“Test reports were found but none of them are new. Did tests run? 

For example, C:\Program Files\Jenkins\workspace\ReadReport1\report1.xml is 8 min 39 sec old

  


-Rohini Pangrikar

 

 

 


Jorge Costa

unread,
Apr 27, 2012, 11:57:12 AM4/27/12
to googletes...@googlegroups.com
Are you sure the xml report is generated in your build? Since you said it failed. If there is a new file than the plugin should just work, if you are copying it from another location and the file in original location is a old one then plugin will fail. 

However this is probably not a question you should ask in this forum, Maybe in this https://groups.google.com/forum/?hl=en&fromgroups#!forum/jenkinsci-users

good luck

JC

Ed of the Mountain

unread,
Apr 27, 2012, 12:14:25 PM4/27/12
to Google C++ Testing Framework
I too would like to publish Google Test with Jenkins. Adding a few
notes to the FAQ on how to do this would promote the use of Google
Test. If you figure this out, please report back.

Perhaps go to the Jenkins workspace and delete existing report1.xml
and try again. I think in general, you should clean and delete
existing test reports before starting a new build and test job. Just
to insure that it is not reporting results from builds 2 months ago.

-Ed

On Apr 26, 11:55 pm, Rohini Pangrikar <rohini.pangri...@gmail.com>
wrote:
> Hi,
>
> I would like to publish the XML report generated by Google Test in Jenkins.
> Can you please guide me about how to publish the Google Test generated XML
> report?****
>
> ** **
>
> I am building my project in Visual Studio. I just want to publish the test
> report using Jenkins/Hudson (or any other utility that can parse and
> publish the XML test report).****
>
> ** **
>
> Following is what I did in Jenkins:****
>
> Installed Jenkins (as a service) on my Windows 7 machine. I installed the
> xunit plugin in Jenkins. Then created a (dummy) new job (build style
> software project). Configured the job to publish the JUnit test result
> report. Copied the Google Test generated xml report (report1.xml) in the
> Jenkins workspace. No other options were changed in the job config. Saved
> the job and built the job. The build fails (expected?), but the  test
> results were not published, got the following message in the log file:****
>
> “Test reports were found but none of them are new. Did tests run? ****
>
> For example, C:\Program Files\Jenkins\workspace\ReadReport1\report1.xml is
> 8 min 39 sec old”****
>
> **
>
> -Rohini Pangrikar****
>
> ** **
>
> ** **
>
> ** **
Reply all
Reply to author
Forward
0 new messages