AutoTest: Add minimum support for debugging tests

This adds another context menu entry for items on the test tree
to allow debugging of a single test.

Task-number: QTCREATORBUG-16070
Change-Id: I98f56b0f22c94ad71f0b91d690383043ed27f1c7
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-06-15 12:29:24 +02:00
parent 0e923c2a75
commit 5988fd0f5c
19 changed files with 227 additions and 25 deletions

View File

@@ -44,6 +44,7 @@ namespace Internal {
class TestOutputReader;
class TestResult;
class TestRunConfiguration;
struct TestSettings;
using TestResultPtr = QSharedPointer<TestResult>;
@@ -55,7 +56,7 @@ public:
explicit TestConfiguration();
virtual ~TestConfiguration();
void completeTestInformation();
void completeTestInformation(int runMode);
void setTestCases(const QStringList &testCases);
void setTestCaseCount(int count);
@@ -79,6 +80,7 @@ public:
QString displayName() const { return m_displayName; }
Utils::Environment environment() const { return m_environment; }
ProjectExplorer::Project *project() const { return m_project.data(); }
TestRunConfiguration *runConfiguration() const { return m_runConfig; }
bool guessedConfiguration() const { return m_guessedConfiguration; }
virtual TestOutputReader *outputReader(const QFutureInterface<TestResultPtr> &fi,
@@ -97,6 +99,7 @@ private:
Utils::Environment m_environment;
QPointer<ProjectExplorer::Project> m_project;
bool m_guessedConfiguration = false;
TestRunConfiguration *m_runConfig = 0;
};
} // namespace Internal