MCPcopy Create free account
hub / github.com/cpputest/cpputest / printFailure

Method printFailure

src/CppUTest/TeamCityTestOutput.cpp:80–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void TeamCityTestOutput::printFailure(const TestFailure& failure)
81{
82 print("##teamcity[testFailed name='");
83 printEscaped(failure.getTestNameOnly().asCharString());
84 print("' message='");
85 if (failure.isOutsideTestFile() || failure.isInHelperFunction()) {
86 print("TEST failed (");
87 print(failure.getTestFileName().asCharString());
88 print(":");
89 print(failure.getTestLineNumber());
90 print("): ");
91 }
92
93 printEscaped(failure.getFileName().asCharString());
94 print(":");
95 print(failure.getFailureLineNumber());
96
97 print("' details='");
98 printEscaped(failure.getMessage().asCharString());
99 print("']\n");
100}

Callers

nothing calls this directly

Calls 9

asCharStringMethod · 0.80
getTestNameOnlyMethod · 0.80
isOutsideTestFileMethod · 0.80
isInHelperFunctionMethod · 0.80
getTestFileNameMethod · 0.80
getTestLineNumberMethod · 0.80
getFileNameMethod · 0.80
getFailureLineNumberMethod · 0.80
getMessageMethod · 0.80

Tested by

no test coverage detected