forked from qt-creator/qt-creator
Add capability to execute selected gtests
Change-Id: Ib7354d6e86176852b2e3bb01aed091db8036bfdf Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -177,6 +177,14 @@ void performTestRun(QFutureInterface<void> &futureInterface,
|
||||
if (testConfiguration->testCases().count())
|
||||
argumentList << testConfiguration->testCases();
|
||||
testProcess.setArguments(argumentList);
|
||||
} else { // TestConfiguration::GTest
|
||||
const QStringList &testSets = testConfiguration->testCases();
|
||||
if (testSets.size()) {
|
||||
QStringList argumentList;
|
||||
argumentList << QLatin1String("--gtest_filter=")
|
||||
+ testSets.join(QLatin1Char(':'));
|
||||
testProcess.setArguments(argumentList);
|
||||
}
|
||||
}
|
||||
|
||||
testProcess.setWorkingDirectory(testConfiguration->workingDirectory());
|
||||
|
||||
Reference in New Issue
Block a user