Make test result distinguishable more easily

This additionally fixes the output of the gtest related test cases.

Change-Id: Ia9e19604ffe387752b08db4a4ad9a9e255d210a3
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-12-14 10:19:37 +01:00
parent e0a05d476b
commit c8c79c409f
4 changed files with 51 additions and 15 deletions

View File

@@ -48,7 +48,10 @@ QString TestResultDelegate::outputString(const TestResult &testResult, bool sele
case Result::UnexpectedPass:
case Result::BlacklistedFail:
case Result::BlacklistedPass:
output = testResult.className() + QLatin1String("::") + testResult.testCase();
if (testResult.type() == TestResult::Qt)
output = testResult.className() + QLatin1String("::") + testResult.testCase();
else // TestResult::GTest
output = testResult.testCase();
if (!testResult.dataTag().isEmpty())
output.append(QString::fromLatin1(" (%1)").arg(testResult.dataTag()));
if (selected && !desc.isEmpty()) {