goodfella / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Append test program name as package to XML report. #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If there are thousands of tests, you must want to organize test by package.
And if you can do that, you can get a nice test report view in CI such as
Hudson. But in GTEST you can't write package. So why not use test program
name as package name?

Such as:
  <testsuite name="UT_XMLParser" tests="1" failures="0" disabled="0"
errors="0" time="0">
    <testcase name="ParseValueList" status="run" time="0"
classname="UT_XMLParser" />
  </testsuite>
Change to:
  <testsuite name="programName.UT_XMLParser" tests="1" failures="0"
disabled="0" errors="0" time="0">
    <testcase name="ParseValueList" status="run" time="0"
classname="programName.UT_XMLParser" />
  </testsuite>

Original issue reported on code.google.com by lxu4...@gmail.com on 11 May 2010 at 2:44

GoogleCodeExporter commented 9 years ago
I don't think it's realistic as we have a lot users who rely on the existing 
format and whose code will be broken.

As an alternative you can either post-process the XML files that Google Test 
process or use Google Test's event 
listener API to generate altered XML directly.

Original comment by vladlosev on 16 May 2010 at 6:06