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

Method notifyTestCaseStarted

plugins/testview/testview.cpp:157–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void TestView::notifyTestCaseStarted(ITestSuite* suite, const QStringList& test_cases)
158{
159 QStandardItem* item = itemForSuite(suite);
160 if (!item)
161 {
162 return;
163 }
164
165 qCDebug(PLUGIN_TESTVIEW) << "Notify a test of the suite " << suite->name() << " has started";
166
167 // Global test suite icon
168 item->setIcon(QIcon::fromTheme(QStringLiteral("process-idle")));
169
170 for (int i = 0; i < item->rowCount(); ++i)
171 {
172 qCDebug(PLUGIN_TESTVIEW) << "Found a test case" << item->child(i)->text();
173 QStandardItem* caseItem = item->child(i);
174 if (test_cases.contains(caseItem->text()))
175 {
176 // Each test case icon
177 caseItem->setIcon(QIcon::fromTheme(QStringLiteral("process-idle")));
178 }
179 }
180}
181
182
183QIcon TestView::iconForTestResult(TestResult::TestCaseResult result)

Callers

nothing calls this directly

Calls 6

setIconMethod · 0.80
nameMethod · 0.45
rowCountMethod · 0.45
textMethod · 0.45
childMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected