Comments (15)
Sad that after all this time, Google Test's output still isn't entirely compatible with JUnit.
from googletest.
Any news on junit_xml support?
from googletest.
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.
I also need a xml format compatible to SonarQube report.
Does anyone have any news?
from googletest.
Is it available in latest release of gtest.
Original comment by [email protected]
on 25 Aug 2009 at 11:29
from googletest.
I guess google doesn't use GitLab CI and SonarQube. So it won't output it ... unless any of you implemented it.
from googletest.
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.
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.
[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.
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.
Jenkins xUnit support it https://wiki.jenkins-ci.org/display/JENKINS/xUnit+Plugin
from googletest.
But not everyone can use this plugin, unfortunately.
So this is quite bad...
from googletest.
FYI, Jenkins has xunit plugin that converts googletest xml to junit format: https://plugins.jenkins.io/xunit/.
from googletest.
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.
Is there still no update on this??? Is Google Test still not producing JUnit XML output?
from googletest.
Related Issues (20)
- [Bug]: `ReturnRef` of type `shared_ptr<Mock<...>> const&` segfaults HOT 2
- [FR]: Add support for building GoogleTest on Xbox platforms HOT 2
- [Bug]: Improve compile-time checking of return values from actions in EXPECT_CALL HOT 11
- EXPECT_EXIT、ASSERT_EXITにてstderrの取得のため以下を実行するとシグナル6で異常終了する。 HOT 1
- [FR]: Skipped reasons in JSON output
- bazel Windows builds are currently failing for automated PR runs on GitHub
- Matchers for C++20 ranges
- [Bug]: Windows Death Tests have different behavior for CLI options compared to other platforms HOT 1
- [Bug]: Compile break for chrono timepoint formatting for macOS target < 13.3 and Xcode 15.3
- [Bug]: StrictMock construction crashed when included in benchmark fixture HOT 1
- What is the correct way to report an error from an Environment teardown?
- [Bug]: MacOSX build gtest failed with /test_output.xml not found HOT 1
- [Bug]: CMake error (set_target_properties) HOT 1
- [FR]: Add z/OS platform for death test support HOT 1
- [Bug]: Undefined symbol to `testing::internal::PrintTo` for `std::u8string`
- [Bug]: MSVC ElementsAreArray compilation errors
- [FR]: Add NOLINT to quiet clang-tidy on EXPECT_CALL
- [Bug]: ASAN heap-buffer-overflow in ParseGoogleTestFlagsOnlyImpl() in gtest.cc HOT 1
- [FR]: Loosen restrictions on what types are considered containers for matchers
- [Bug]: std::length_error from cmake function "generate_testname_guards()"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googletest.