forked from qt-creator/qt-creator
Try to guess run configuration if none is explicitly set
Additionally provide a setting to not display warnings regarding using a guessed run configuration. Change-Id: Ia7647f55e5085ffc84044281c5107770cd30d504 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -30,7 +30,8 @@ TestConfiguration::TestConfiguration(const QString &testClass, const QStringList
|
||||
m_testCases(testCases),
|
||||
m_testCaseCount(testCaseCount),
|
||||
m_unnamedOnly(false),
|
||||
m_project(0)
|
||||
m_project(0),
|
||||
m_guessedConfiguration(false)
|
||||
{
|
||||
if (testCases.size() != 0) {
|
||||
m_testCaseCount = testCases.size();
|
||||
@@ -102,5 +103,10 @@ void TestConfiguration::setUnnamedOnly(bool unnamedOnly)
|
||||
m_unnamedOnly = unnamedOnly;
|
||||
}
|
||||
|
||||
void TestConfiguration::setGuessedConfiguration(bool guessed)
|
||||
{
|
||||
m_guessedConfiguration = guessed;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Autotest
|
||||
|
||||
Reference in New Issue
Block a user