mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 20:00:38 -06:00
CTest: add test failure reason to JUnit XML output
In case of test failure, add the test failure reason (e.g. "Timeout") to the failure message in the XML file. This is the same value that is shown in the ctest text output. Fixes: #24184
This commit is contained in:
@@ -2569,7 +2569,7 @@ bool cmCTestTestHandler::WriteJUnitXML()
|
||||
xml.EndElement(); // </skipped>
|
||||
} else if (status == "fail") {
|
||||
xml.StartElement("failure");
|
||||
xml.Attribute("message", result.Reason);
|
||||
xml.Attribute("message", this->GetTestStatus(result));
|
||||
xml.EndElement(); // </failure>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user