Hi,
As it is mentioned in the documentation Google Test output XML format
is compatible with JUnit. At the moment it looks for instance like
this:
<?xml version="1.0" encoding="UTF-8"?>
<testsuite tests="11" failures="0" disabled="0" errors="0" time="0"
name="AllTests">
<testsuite name="Cache" tests="11" failures="0" disabled="0"
errors="0" time="0">
<testcase name="BucketExists" status="run" time="0"
classname="Cache" />
...
<testcase name="ClearStats" status="run" time="0"
classname="Cache" />
</testsuite>
</testsuite>
But it's not compatible with JUnit format a bit, especially nested
'<testsuite>' tags which is generally speaking not quite right, isn't
it?
To be compatible with JUnit and to be successfully fed to Hudson, for
example, it would look like this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="
http://repository/xsl/junit-
doc.xsl"?>
<testsuite tests="11" failures="0" notperformed="0" errors="0"
time="0" name="com.unittest.cache">
<testcase name="BucketExists" status="run" time="0"
classname="com.unittest.cache.Cache" />
...
<testcase name="ClearStats" status="run" time="0"
classname="com.unittest.cache.Cache" />
</testsuite>
Is there any general plan to make XML reporting in GTest closer to
JUnit? I have my custom 1.3.0 version derivative changed to produce
proper JUnit XML output but I am really keen to make this patch widely
usable. So are there any plans in this direction in the official trunk
just not to re-invent a wheel?
Regards,
Alexander