Squish: Save modified files before running a test

Change-Id: Iaf15c05ea057e871d0facb60cbb036a1497dd038
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2022-10-05 08:53:14 +02:00
parent 6a4b3e67e0
commit e70bb187dc

View File

@@ -13,6 +13,7 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h>
#include <utils/algorithm.h>
#include <utils/aspects.h>
@@ -342,6 +343,7 @@ void SquishFileHandler::runTestCase(const QString &suiteName, const QString &tes
return;
}
ProjectExplorer::ProjectExplorerPlugin::saveModifiedFiles();
SquishTools::instance()->runTestCases(suitePath.absolutePath(), QStringList(testCaseName));
}
@@ -371,6 +373,7 @@ void SquishFileHandler::runTestSuite(const QString &suiteName)
.arg(suiteName));
return;
}
ProjectExplorer::ProjectExplorerPlugin::saveModifiedFiles();
SquishTools::instance()->runTestCases(suitePath.absolutePath(), testCases);
}