forked from qt-creator/qt-creator
PE: Prepare build system for providing test information
This allows later on to provide build system based test runs. Task-number: QTCREATORBUG-23332 Change-Id: I7e26cd2b6a7d304faec79363ce4c2368287c2300 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -368,4 +368,10 @@ QString BuildSystem::disabledReason(const QString &buildKey) const
|
||||
return {};
|
||||
}
|
||||
|
||||
CommandLine BuildSystem::commandLineForTests(const QList<QString> & /*tests*/,
|
||||
const QStringList & /*options*/) const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
} // namespace ProjectExplorer
|
||||
|
@@ -38,6 +38,13 @@ namespace ProjectExplorer {
|
||||
class BuildConfiguration;
|
||||
class Node;
|
||||
|
||||
struct TestCaseInfo
|
||||
{
|
||||
QString name;
|
||||
Utils::FilePath path;
|
||||
int line = 0;
|
||||
};
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
// BuildSystem:
|
||||
// --------------------------------------------------------------------
|
||||
@@ -95,6 +102,10 @@ public:
|
||||
|
||||
void setRootProjectNode(std::unique_ptr<ProjectNode> &&root);
|
||||
|
||||
virtual const QList<TestCaseInfo> testcasesInfo() const { return {}; }
|
||||
virtual Utils::CommandLine commandLineForTests(const QList<QString> &tests,
|
||||
const QStringList &options) const;
|
||||
|
||||
class PROJECTEXPLORER_EXPORT ParseGuard
|
||||
{
|
||||
friend class BuildSystem;
|
||||
@@ -138,6 +149,7 @@ signals:
|
||||
void parsingFinished(bool success);
|
||||
void deploymentDataChanged();
|
||||
void applicationTargetsChanged();
|
||||
void testInformationUpdated();
|
||||
|
||||
protected:
|
||||
// Helper methods to manage parsing state and signalling
|
||||
|
Reference in New Issue
Block a user