| 56 | } |
| 57 | |
| 58 | void TestController::addTestSuite(ITestSuite* suite) |
| 59 | { |
| 60 | Q_D(TestController); |
| 61 | |
| 62 | if (ITestSuite* existingSuite = findTestSuite(suite->project(), suite->name())) |
| 63 | { |
| 64 | if (existingSuite == suite) { |
| 65 | return; |
| 66 | } |
| 67 | removeTestSuite(existingSuite); |
| 68 | delete existingSuite; |
| 69 | } |
| 70 | d->suites.append(suite); |
| 71 | if(!ICore::self()->shuttingDown()) |
| 72 | emit testSuiteAdded(suite); |
| 73 | } |
| 74 | |
| 75 | ITestSuite* TestController::findTestSuite(IProject* project, const QString& name) const |
| 76 | { |
no test coverage detected