Provide basic test runner and output pane

This commit is contained in:
Christian Stenger
2014-10-07 15:51:02 +02:00
committed by Christian Stenger
parent 2f4139e5d3
commit 44db2be195
34 changed files with 1877 additions and 26 deletions

View File

@@ -50,8 +50,7 @@ void TestCodeParser::updateTestTree()
TestTreeItem *autoTestRootItem = static_cast<TestTreeItem *>(autoTestRootIndex.internalPointer());
autoTestRootItem->removeChildren();
m_model->endResetModel();
ProjectExplorer::SessionManager *session = static_cast<ProjectExplorer::SessionManager *>(
ProjectExplorer::SessionManager::instance());
ProjectExplorer::SessionManager *session = ProjectExplorer::SessionManager::instance();
if (!session || !session->hasProjects())
return;
@@ -196,10 +195,10 @@ void TestCodeParser::checkDocumentForTestCode(CPlusPlus::Document::Ptr doc)
m_cppDocMap.insert(file, new TestInfo(tc, privSlots.keys(),
doc->revision(),
doc->editorRevision()));
delete info;
break;
}
}
delete info;
delete ttItem;
} else {
m_model->beginInsertRows(autoTestRootIndex, autoTestRootItem->childCount(), autoTestRootItem->childCount());