XSL For XML Output

569 views
Skip to first unread message

scott

unread,
Jan 25, 2009, 8:16:57 PM1/25/09
to Google C++ Testing Framework
Is anyone using an XSL to transform/display the XML output? If so,
would you be willing to share?

I've had trouble finding anything that will do the trick, as most
JUnit oriented stylesheets tend to be oriented towards the JUnit-
Report output (containing multiple testsuites in 1 xml file), rather
than the JUnit output that Google Test's output is designed to match.

Thanks,

Scott

Rainer Klaffenboeck

unread,
Jan 26, 2009, 3:26:10 AM1/26/09
to scott, Google C++ Testing Framework
Hi Scott,

Sooner or later I guess I'll have to go either the 'gtest generates an xml per testcase' or the 'let an xslt split gtest's xml into 1 per testcase' route - all because ant's junitreport task really can't work with gtest's output properly.

For now I can live with the output it generates, although no links are really working and the like.

I know this didn't help you - sorry about that. But at least you know you're not alone. :)

What I do have though, is an xslt to filter out tests that have not been actually run, ie. have been filtered out. (see attachment) I needed that to 'merge' output of multiple filtered runs. Although the junitreport task doesn't really handle that nicely either.

Greetings,
Rainer

gtest.xsl
Reply all
Reply to author
Forward
0 new messages