forked from qt-creator/qt-creator
Squish: Save modified files before running a test
Change-Id: Iaf15c05ea057e871d0facb60cbb036a1497dd038 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user