19 #include "internal/berryTestRegistry.h"
21 #include "cppunit/TestRunner.h"
22 #include "cppunit/TestResult.h"
23 #include "cppunit/TestResultCollector.h"
29 const QList<ITestDescriptor::Pointer>& descriptors,
31 const QString& testName,
33 : descriptors(descriptors)
43 CppUnit::TestRunner runner;
45 unsigned int testCounter = 0;
48 if (descr->IsUITest() ==
uitests)
50 CppUnit::Test*
test = descr->CreateTest();
58 std::cout <<
"No " << (
uitests ?
"UI " :
"") <<
"tests registered."
76 CppUnit::TestResult controller;
78 CppUnit::TestResultCollector result;
79 controller.addListener(&result);
81 runner.run(controller);
82 return result.wasSuccessful() ? 0 : 1;
87 TestRegistry testRegistry;
88 const QList<ITestDescriptor::Pointer>& tests = testRegistry.GetTestsForId(
Follow Up Storage - Class to facilitate loading/accessing structured follow-up data.
QList< ITestDescriptor::Pointer > descriptors
BlueBerryTestDriver(const QList< ITestDescriptor::Pointer > &descriptors, bool uitests=false, const QString &testName="", bool wait=false)