AutoTest: Display hint if no framework is active

Change-Id: Ia569bcb5c78809cd9bc58499b55b1b26e34d5d89
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Christian Stenger
2016-06-08 12:56:25 +02:00
parent e17d09a83a
commit 584e0c6b4c
9 changed files with 74 additions and 2 deletions

View File

@@ -151,5 +151,14 @@ bool TestFrameworkManager::isActive(const Core::Id &frameworkId) const
return framework ? framework->active() : false;
}
bool TestFrameworkManager::hasActiveFrameworks() const
{
for (ITestFramework *framework : m_registeredFrameworks.values()) {
if (framework->active())
return true;
}
return false;
}
} // namespace Internal
} // namespace Autotest