From 873a72da1d8d5595b1648ffba2c846023985397b Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 23 Mar 2010 02:15:52 +0100 Subject: beautification of xml output of cppunit --- test/report.xsl | 125 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/test.cpp | 1 + 2 files changed, 126 insertions(+) create mode 100644 test/report.xsl diff --git a/test/report.xsl b/test/report.xsl new file mode 100644 index 00000000..b394cdbe --- /dev/null +++ b/test/report.xsl @@ -0,0 +1,125 @@ + + + + + + + +Test Report + + + +

Test Report

+ + + +
+ + +

FailedTests

+ + + + + + + + + + + +
idNameFailureTypeLocationMessage
+
+ + No failed test. + +
+
+ + + + + + + +
+ +
+ + + + line # in + + + + +

SuccessfulTests

+ + + + + + + + +
idName
+
+ + No sucessful test. + +
+
+ + + + + + + + + +

Statistics

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
StatusNumber
Tests
FailuresTotal
Errors
Failures
+
+ +
diff --git a/test/test.cpp b/test/test.cpp index 53ee3a89..b6e7d806 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -58,6 +58,7 @@ int main(int argc, char **argv) std::fstream filestr; filestr.open ("test.xml", std::fstream::out | std::fstream::trunc); CppUnit::XmlOutputter xml_outputter(&result, filestr); + xml_outputter.setStyleSheet("report.xsl"); xml_outputter.write(); filestr.close(); -- cgit v1.2.3