| 72 | } |
| 73 | |
| 74 | ProjectTestJob::ProjectTestJob(IProject* project, QObject* parent) |
| 75 | : KJob(parent) |
| 76 | , d_ptr(new ProjectTestJobPrivate(this)) |
| 77 | { |
| 78 | Q_D(ProjectTestJob); |
| 79 | |
| 80 | setCapabilities(Killable); |
| 81 | setObjectName(i18n("Run all tests in %1", project->name())); |
| 82 | |
| 83 | d->m_suites = ICore::self()->testController()->testSuitesForProject(project); |
| 84 | connect(ICore::self()->testController(), &ITestController::testRunFinished, |
| 85 | this, [this](ITestSuite* suite, const TestResult& result) { |
| 86 | Q_D(ProjectTestJob); |
| 87 | d->gotResult(suite, result); |
| 88 | }); |
| 89 | } |
| 90 | |
| 91 | ProjectTestJob::~ProjectTestJob() |
| 92 | { |
nothing calls this directly
no test coverage detected