| 157 | } |
| 158 | |
| 159 | void TestTestController::findByProject() |
| 160 | { |
| 161 | IProject* otherProject = new TestProject(Path(), this); |
| 162 | |
| 163 | ITestSuite* suiteOne = new FakeTestSuite(TestSuiteName, m_project); |
| 164 | ITestSuite* suiteTwo = new FakeTestSuite(TestSuiteName, otherProject); |
| 165 | m_testController->addTestSuite(suiteOne); |
| 166 | m_testController->addTestSuite(suiteTwo); |
| 167 | |
| 168 | QCOMPARE(m_testController->testSuites().size(), 2); |
| 169 | QCOMPARE(m_testController->testSuitesForProject(m_project).size(), 1); |
| 170 | |
| 171 | QCOMPARE(m_testController->testSuitesForProject(m_project).at(0), suiteOne); |
| 172 | |
| 173 | m_testController->removeTestSuite(suiteOne); |
| 174 | m_testController->removeTestSuite(suiteTwo); |
| 175 | delete suiteOne; |
| 176 | delete suiteTwo; |
| 177 | |
| 178 | delete otherProject; |
| 179 | } |
| 180 | |
| 181 | void TestTestController::testResults() |
| 182 | { |
nothing calls this directly
no test coverage detected