MCPcopy Create free account
hub / github.com/KDE/kdevelop / ProjectTestJob

Method ProjectTestJob

kdevplatform/util/projecttestjob.cpp:74–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74ProjectTestJob::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
91ProjectTestJob::~ProjectTestJob()
92{

Callers

nothing calls this directly

Calls 4

testSuitesForProjectMethod · 0.80
testControllerMethod · 0.80
gotResultMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected