Commit 2f1018ab authored by Christian Stenger's avatar Christian Stenger
Browse files

Fix missing MessageTestCaseEnd for Qt4 based tests



Qt4 based tests have no duration, so this message had been omitted
accidently.

Change-Id: I11b03234c8f7fd022e951728b70ae186091c15d9
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent b13373e4
......@@ -282,10 +282,12 @@ void TestOutputReader::processOutput()
testResultCreated(testResult);
}
emit increaseProgress();
} else if (currentTag == QStringLiteral("TestCase") && !duration.isEmpty()) {
} else if (currentTag == QStringLiteral("TestCase")) {
auto testResult = new TestResult(className);
testResult->setResult(Result::MessageTestCaseEnd);
testResult->setDescription(tr("Test execution took %1 ms.").arg(duration));
testResult->setDescription(
duration.isEmpty() ? tr("Test finished.")
: tr("Test execution took %1 ms.").arg(duration));
testResultCreated(testResult);
} else if (validEndTags.contains(currentTag.toString())) {
auto testResult = new TestResult(className);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment