| 36 | |
| 37 | private 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 | { |
nothing calls this directly
no test coverage detected