Code Monkey home page Code Monkey logo

Comments (15)

keithzg avatar keithzg commented on May 22, 2024 21

Sad that after all this time, Google Test's output still isn't entirely compatible with JUnit.

from googletest.

antekone avatar antekone commented on May 22, 2024 14

Any news on junit_xml support?

from googletest.

gayanpathirage avatar gayanpathirage commented on May 22, 2024 9

Still not available; --gtest_output=xml still produce incompatible output. This is required for Jenkins, SonarQube like external analyzers.

mytest --gtest_output=junit_xml:output.xml
WARNING: unrecognized output format "junit_xml" ignored.

from googletest.

albmiranda avatar albmiranda commented on May 22, 2024 2

I also need a xml format compatible to SonarQube report.
Does anyone have any news?

from googletest.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024 1
Is it available in latest release of gtest.

Original comment by [email protected] on 25 Aug 2009 at 11:29

from googletest.

KOLANICH avatar KOLANICH commented on May 22, 2024 1

I guess google doesn't use GitLab CI and SonarQube. So it won't output it ... unless any of you implemented it.

from googletest.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
I'd like to request a higher priority on this issue.  We (and many others) are 
using
Continuous Integration systems that all have mechanisms for parsing JUnit and 
in some
cases CppUnit XML results.  Right now, Google Test is not an alternative for 
these
people because of the lack of reporting in a standard way.

Original comment by [email protected] on 16 Sep 2008 at 5:01

from googletest.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
Changed to high priority.

Original comment by [email protected] on 17 Sep 2008 at 6:55

  • Added labels: Priority-High
  • Removed labels: Priority-Low

from googletest.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
[email protected] reported:

<quote>
I've tried gtest with Cruise Control and seems xml output of gtest is
a bit different than CC expects.

CC expects this format:
<testsuite name="AllTests" ...>
 <testsuite name="test_case_name" ...>
   <testcase name="test_name" ...>
     <failure ...>Error message</failure>
   </testcase>
 </testsuite>
</testsuite>

But gtest uses this:
<testsuite name="AllTests" ...>
 <testsuite name="test_case_name" ...>
   <testcase name="test_name" ...>
     <failure message="Error message"/>
   </testcase>
 </testsuite>
</testsuite>

The difference is the placement of the "message". Because of this
difference CC can't display the error message.
You have to know, CC works very well with JUnit, so seems junit xml
output and gtest xml output is a bit different..
</quote>

Also, I heard report that in JUnit's output the time unit is second (e.g. 2.3), 
while 
Google Test uses millisecond (e.g. 2300).

Original comment by [email protected] on 19 Sep 2008 at 5:56

from googletest.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
Google Test's XML output format has been changed to match JUnit/Ant's in the 
trunk.

Original comment by [email protected] on 26 Sep 2008 at 4:12

  • Changed state: Fixed

from googletest.

KindDragon avatar KindDragon commented on May 22, 2024

Jenkins xUnit support it https://wiki.jenkins-ci.org/display/JENKINS/xUnit+Plugin

from googletest.

mbrucher avatar mbrucher commented on May 22, 2024

But not everyone can use this plugin, unfortunately.
So this is quite bad...

from googletest.

dhoer avatar dhoer commented on May 22, 2024

FYI, Jenkins has xunit plugin that converts googletest xml to junit format: https://plugins.jenkins.io/xunit/.

from googletest.

KOLANICH avatar KOLANICH commented on May 22, 2024

Thanks, though I don't think it is very suitable for GitLab CI since it is written in Java and requires its runtime. For pipelines already using both Google Test and JVM it may be feasible to adopt it. But for another ones ... I don't think it worths.

from googletest.

jasonmeverett avatar jasonmeverett commented on May 22, 2024

Is there still no update on this??? Is Google Test still not producing JUnit XML output?

from googletest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.