allow to select long tests to be run from cmdline

This commit is contained in:
Brice Gros
2019-10-18 15:09:38 +02:00
parent d658cc25e7
commit 22c3ae8d30
13 changed files with 115 additions and 43 deletions

View File

@@ -35,11 +35,11 @@ void TestSuite::run(TestResult *result)
// Counts the number of test cases that will be run by this test.
int TestSuite::countTestCases()
int TestSuite::countTestCases() const
{
int count = 0;
for (std::vector<Test*>::iterator it = _tests.begin (); it != _tests.end (); ++it)
for (std::vector<Test*>::const_iterator it = _tests.begin (); it != _tests.end (); ++it)
count += (*it)->countTestCases();
return count;