| 1516 | } |
| 1517 | |
| 1518 | void cmCTestTestHandler::WriteTestResultHeader(cmXMLWriter& xml, |
| 1519 | cmCTestTestResult const& result) |
| 1520 | { |
| 1521 | xml.StartElement("Test"); |
| 1522 | if (result.Status == cmCTestTestHandler::COMPLETED) { |
| 1523 | xml.Attribute("Status", "passed"); |
| 1524 | } else if (result.Status == cmCTestTestHandler::NOT_RUN) { |
| 1525 | xml.Attribute("Status", "notrun"); |
| 1526 | } else { |
| 1527 | xml.Attribute("Status", "failed"); |
| 1528 | } |
| 1529 | std::string testPath = result.Path + "/" + result.Name; |
| 1530 | xml.Element("Name", result.Name); |
| 1531 | xml.Element("Path", this->CTest->GetShortPathToFile(result.Path)); |
| 1532 | xml.Element("FullName", this->CTest->GetShortPathToFile(testPath)); |
| 1533 | xml.Element("FullCommandLine", result.FullCommandLine); |
| 1534 | if (result.StartTestTime) { |
| 1535 | xml.Element("StartTestTime", *result.StartTestTime); |
| 1536 | } |
| 1537 | } |
| 1538 | |
| 1539 | void cmCTestTestHandler::WriteTestResultFooter(cmXMLWriter& xml, |
| 1540 | cmCTestTestResult const& result) |
no test coverage detected