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

Method initTestCase

plugins/docker/tests/test_docker.cpp:38–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37private Q_SLOTS:
38 void initTestCase() {
39 auto ret = QProcess::execute("docker", {"pull", s_testedImage});
40 if (ret != 0) {
41 QSKIP("Couldn't successfully call docker");
42 return;
43 }
44
45 AutoTestShell::init({QStringLiteral("kdevdocker"), QStringLiteral("KDevGenericManager")});
46 TestCore::initialize();
47
48 m_initialRuntime = ICore::self()->runtimeController()->currentRuntime();
49
50 auto plugin = ICore::self()->pluginController()->loadPlugin("kdevdocker");
51 QVERIFY(plugin);
52
53 QSignalSpy spy(plugin, SIGNAL(imagesListed()));
54 QVERIFY(spy.wait());
55
56 auto projectPath = QUrl::fromLocalFile(QFINDTESTDATA("testproject/test.kdev4"));
57 TestCore::self()->projectController()->openProject(projectPath);
58 QSignalSpy spy2(TestCore::self()->projectController(), &IProjectController::projectOpened);
59 QVERIFY(spy2.wait());
60 }
61
62 void init()
63 {

Callers

nothing calls this directly

Calls 10

executeFunction · 0.85
initializeFunction · 0.85
currentRuntimeMethod · 0.80
runtimeControllerMethod · 0.80
pluginControllerMethod · 0.80
waitMethod · 0.80
projectControllerMethod · 0.80
initClass · 0.50
loadPluginMethod · 0.45
openProjectMethod · 0.45

Tested by

no test coverage detected