X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fformatter.cc;h=198b9e7df75d63b1afd92a64dc69ee71f4850760;hb=bf2a0c2d70c613ab933de37b8aaa0702a15e2ccd;hp=ad5b163541b4f14a11e003431331f7facc79ea79;hpb=7db3b0483da2a158f2559cd55f13ef7769e36d10;p=awesomized%2Flibmemcached diff --git a/libtest/formatter.cc b/libtest/formatter.cc index ad5b1635..198b9e7d 100644 --- a/libtest/formatter.cc +++ b/libtest/formatter.cc @@ -206,8 +206,10 @@ void Formatter::xml(libtest::Framework& framework_, std::ofstream& output) { output << "\t" - << std::endl; +#if 0 + << " classname=\"\" package=\"\"" +#endif + << ">" << std::endl; for (TestCases::iterator case_iter= (*framework_iter)->formatter()->testcases().begin(); case_iter != (*framework_iter)->formatter()->testcases().end(); @@ -217,23 +219,27 @@ void Formatter::xml(libtest::Framework& framework_, std::ofstream& output) << escape4XML((*case_iter)->name(), escaped_string) << " time=\"" << (*case_iter)->timer().elapsed_milliseconds() - << "\">" + << "\"" << std::endl; switch ((*case_iter)->result()) { case TEST_SKIPPED: + output << ">" << std::endl; output << "\t\t " << std::endl; + output << "\t\t" << std::endl; break; case TEST_FAILURE: + output << ">" << std::endl; output << "\t\t "<< std::endl; + output << "\t\t" << std::endl; break; case TEST_SUCCESS: + output << "/>" << std::endl; break; } - output << "\t\t" << std::endl; } output << "\t" << std::endl; }