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

Method runAllTests

src/CppUTest/TestRegistry.cpp:46–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void TestRegistry::runAllTests(TestResult& result)
47{
48 bool groupStart = true;
49
50 result.testsStarted();
51 for (UtestShell *test = tests_; test != NULLPTR; test = test->getNext()) {
52 if (runInSeperateProcess_) test->setRunInSeperateProcess();
53 if (runIgnored_) test->setRunIgnored();
54
55 if (groupStart) {
56 result.currentGroupStarted(test);
57 groupStart = false;
58 }
59
60 result.countTest();
61 if (testShouldRun(test, result)) {
62 result.currentTestStarted(test);
63 test->runOneTest(firstPlugin_, result);
64 result.currentTestEnded(test);
65 }
66
67 if (endOfGroup(test)) {
68 groupStart = true;
69 result.currentGroupEnded(test);
70 }
71 }
72 result.testsEnded();
73 currentRepetition_++;
74}
75
76void TestRegistry::listTestGroupNames(TestResult& result)
77{

Callers 15

TESTFunction · 0.45
testFailureWithFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
MSC_SWITCHED_TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
addAndRunAllTestsFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 11

countTestMethod · 0.80
testsStartedMethod · 0.45
getNextMethod · 0.45
setRunIgnoredMethod · 0.45
currentGroupStartedMethod · 0.45
currentTestStartedMethod · 0.45
runOneTestMethod · 0.45
currentTestEndedMethod · 0.45
currentGroupEndedMethod · 0.45
testsEndedMethod · 0.45

Tested by

no test coverage detected