src.dualinventive.com/dinet/libdi/common/gtest-report
Jerry Jacobs 1193c82181 initial 2024-08-09 12:10:16 +02:00
..
README.md initial 2024-08-09 12:10:16 +02:00
gtest-report.dtd initial 2024-08-09 12:10:16 +02:00
gtest-report.py initial 2024-08-09 12:10:16 +02:00
gtest-report.xsl initial 2024-08-09 12:10:16 +02:00
gtest_output.png initial 2024-08-09 12:10:16 +02:00

README.md

gtxslt

XSLT for gTest's xml output

Here is the sample1's output:

sample1 's output

To use it, please apply this patch:

*** gtest.1.6.0.cc	2011-04-16 03:49:11.000000000 +0800
--- gtest.cc	2012-05-03 21:55:43.340238982 +0800
***************
*** 3293,3298 ****
--- 3293,3300 ----
  void XmlUnitTestResultPrinter::PrintXmlUnitTest(FILE* out,
                                                  const UnitTest& unit_test) {
    fprintf(out, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
+   fprintf(out, "<?xml-stylesheet type=\"text/xsl\" href=\"gtest-result.xsl\" ?>\n");
+   fprintf(out, "<!DOCTYPE testsuites SYSTEM \"gtest-result.dtd\">\n");
    fprintf(out,
            "<testsuites tests=\"%d\" failures=\"%d\" disabled=\"%d\" "
            "errors=\"0\" time=\"%s\" ",

Enjoy it!

AUTHORS

https://github.com/wadefelix/gtxslt