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

Method initTestCase

kdevplatform/shell/tests/test_projectcontroller.cpp:149–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147////////////////////// Fixture ///////////////////////////////////////////////
148
149void TestProjectController::initTestCase()
150{
151 AutoTestShell::init({{}});
152 auto* testCore = new TestCore;
153 testCore->setPluginController( new FakePluginController(testCore) );
154 testCore->initialize();
155 qRegisterMetaType<KDevelop::IProject*>();
156 m_core = Core::self();
157 m_scratchDir = QDir(QDir::tempPath());
158 m_scratchDir.mkdir(QStringLiteral("prjctrltest"));
159 m_scratchDir.cd(QStringLiteral("prjctrltest"));
160
161 QSignalSpy projectControllerInitializedSpy(m_core->projectControllerInternal(),
162 &ProjectController::initialized);
163 QVERIFY(projectControllerInitializedSpy.wait(100));
164}
165
166void TestProjectController::cleanupTestCase()
167{

Callers

nothing calls this directly

Calls 8

setPluginControllerMethod · 0.80
mkdirMethod · 0.80
cdMethod · 0.80
waitMethod · 0.80
initFunction · 0.50
QDirClass · 0.50
initializeMethod · 0.45

Tested by

no test coverage detected