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