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

Function TEST

tests/CppUTest/CommandLineTestRunnerTest.cpp:120–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118};
119
120TEST(CommandLineTestRunner, OnePluginGetsInstalledDuringTheRunningTheTests)
121{
122 const char* argv[] = { "tests.exe", "-psomething"};
123
124 registry.installPlugin(pluginCountingPlugin);
125
126 CommandLineTestRunnerWithStringBufferOutput commandLineTestRunner(2, argv, &registry);
127 commandLineTestRunner.runAllTestsMain();
128 registry.removePluginByName("PluginCountingPlugin");
129
130 LONGS_EQUAL(0, registry.countPlugins());
131 LONGS_EQUAL(1, pluginCountingPlugin->amountOfPlugins);
132}
133
134TEST(CommandLineTestRunner, NoPluginsAreInstalledAtTheEndOfARunWhenTheArgumentsAreInvalid)
135{

Callers

nothing calls this directly

Calls 10

runAndGetOutputFunction · 0.85
runAllTestsMainMethod · 0.80
countPluginsMethod · 0.80
asCharStringMethod · 0.80
getOutputMethod · 0.80
splitMethod · 0.80
restoreOriginalsMethod · 0.80
installPluginMethod · 0.45
removePluginByNameMethod · 0.45
addTestMethod · 0.45

Tested by

no test coverage detected