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

Function runAndGetOutput

tests/CppUTest/CommandLineTestRunnerTest.cpp:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 SimpleString runAndGetOutput(const int argc, const char* argv[])
113 {
114 CommandLineTestRunnerWithStringBufferOutput commandLineTestRunner(argc, argv, &registry);
115 commandLineTestRunner.runAllTestsMain();
116 return commandLineTestRunner.fakeConsoleOutputWhichIsReallyABuffer->getOutput();
117 }
118};
119
120TEST(CommandLineTestRunner, OnePluginGetsInstalledDuringTheRunningTheTests)

Callers 1

TESTFunction · 0.85

Calls 2

runAllTestsMainMethod · 0.80
getOutputMethod · 0.80

Tested by

no test coverage detected