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

Method writeTestSuiteSummary

src/CppUTest/JUnitTestOutput.cpp:185–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void JUnitTestOutput::writeTestSuiteSummary()
186{
187 SimpleString
188 buf =
189 StringFromFormat(
190 "<testsuite errors=\"0\" failures=\"%d\" hostname=\"localhost\" name=\"%s\" tests=\"%d\" time=\"%d.%03d\" timestamp=\"%s\">\n",
191 (int)impl_->results_.failureCount_,
192 impl_->results_.group_.asCharString(),
193 (int) impl_->results_.testCount_,
194 (int) (impl_->results_.groupExecTime_ / 1000), (int) (impl_->results_.groupExecTime_ % 1000),
195 GetPlatformSpecificTimeString());
196 writeToFile(buf.asCharString());
197}
198
199void JUnitTestOutput::writeProperties()
200{

Callers

nothing calls this directly

Calls 2

StringFromFormatFunction · 0.85
asCharStringMethod · 0.80

Tested by

no test coverage detected