forked from qt-creator/qt-creator
AutoTest: Introduce ITestConfiguration
Preparation for an additional simpler test configuration which needs to have the same common base. Change-Id: I1800ed5d7301f1aea99eba6ef588a204697bd569 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -479,10 +479,10 @@ void QtTestOutputReader::sendCompleteInformation()
|
||||
testResult->setFileName(m_file);
|
||||
testResult->setLine(m_lineNumber);
|
||||
} else {
|
||||
const TestTreeItem *testItem = testResult->findTestTreeItem();
|
||||
const ITestTreeItem *testItem = testResult->findTestTreeItem();
|
||||
if (testItem && testItem->line()) {
|
||||
testResult->setFileName(testItem->filePath());
|
||||
testResult->setLine(static_cast<int>(testItem->line()));
|
||||
testResult->setLine(testItem->line());
|
||||
}
|
||||
}
|
||||
testResult->setDescription(m_description);
|
||||
@@ -503,10 +503,10 @@ void QtTestOutputReader::sendStartMessage(bool isFunction)
|
||||
testResult->setResult(ResultType::TestStart);
|
||||
testResult->setDescription(isFunction ? tr("Executing test function %1").arg(m_testCase)
|
||||
: tr("Executing test case %1").arg(m_className));
|
||||
const TestTreeItem *testItem = testResult->findTestTreeItem();
|
||||
const ITestTreeItem *testItem = testResult->findTestTreeItem();
|
||||
if (testItem && testItem->line()) {
|
||||
testResult->setFileName(testItem->filePath());
|
||||
testResult->setLine(static_cast<int>(testItem->line()));
|
||||
testResult->setLine(testItem->line());
|
||||
}
|
||||
reportResult(testResult);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user