| 86 | } // unnamed namespace |
| 87 | |
| 88 | void GitInitTest::initTestCase() |
| 89 | { |
| 90 | AutoTestShell::init({{}}); // load no plugins at all |
| 91 | TestCore::initialize(Core::NoUi); |
| 92 | |
| 93 | const auto pluginMetaData = makeTestPluginMetaData("TestGit"); |
| 94 | m_plugin = new GitPlugin(TestCore::self(), pluginMetaData); |
| 95 | |
| 96 | removeTempDirs(); // in case the previous test run crashed and left a git repository behind |
| 97 | |
| 98 | const auto gitExecutable = QStandardPaths::findExecutable(QStringLiteral("git")); |
| 99 | if (gitExecutable.isEmpty()) { |
| 100 | QSKIP("Skipping because `git` executable is not available"); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void GitInitTest::cleanupTestCase() |
| 105 | { |
nothing calls this directly
no test coverage detected