forked from qt-creator/qt-creator
AutoTest: Allow grouping of results by application
Add an option to group test results by the application that contains the test cases. Fixes: QTCREATORBUG-21740 Change-Id: If4e5c8118cd5dd81b1b75891b4eca85b08e76848 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -55,6 +55,8 @@ TestResult::TestResult(const QString &id, const QString &name)
|
||||
|
||||
const QString TestResult::outputString(bool selected) const
|
||||
{
|
||||
if (m_result == Result::Application)
|
||||
return m_id;
|
||||
return selected ? m_description : m_description.split('\n').first();
|
||||
}
|
||||
|
||||
@@ -145,6 +147,7 @@ QString TestResult::resultToString(const Result::Type type)
|
||||
case Result::BlacklistedXFail:
|
||||
return QString("BXFAIL");
|
||||
case Result::MessageLocation:
|
||||
case Result::Application:
|
||||
return QString();
|
||||
default:
|
||||
if (type >= Result::INTERNAL_MESSAGES_BEGIN && type <= Result::INTERNAL_MESSAGES_END)
|
||||
|
||||
Reference in New Issue
Block a user