forked from qt-creator/qt-creator
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:
@@ -44,6 +44,12 @@ class TestRunner : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum Mode
|
||||
{
|
||||
Run,
|
||||
Debug
|
||||
};
|
||||
|
||||
static TestRunner* instance();
|
||||
~TestRunner();
|
||||
|
||||
@@ -57,7 +63,7 @@ signals:
|
||||
void testResultReady(const TestResultPtr &result);
|
||||
|
||||
public slots:
|
||||
void prepareToRunTests();
|
||||
void prepareToRunTests(Mode mode);
|
||||
|
||||
private slots:
|
||||
void buildProject(ProjectExplorer::Project *project);
|
||||
@@ -66,11 +72,14 @@ private slots:
|
||||
|
||||
private:
|
||||
void runTests();
|
||||
void debugTests();
|
||||
void runOrDebugTests();
|
||||
explicit TestRunner(QObject *parent = 0);
|
||||
|
||||
QFutureWatcher<TestResultPtr> m_futureWatcher;
|
||||
QList<TestConfiguration *> m_selectedTests;
|
||||
bool m_executingTests;
|
||||
Mode m_runMode = Run;
|
||||
|
||||
// temporarily used if building before running is necessary
|
||||
QMetaObject::Connection m_buildConnect;
|
||||
|
||||
Reference in New Issue
Block a user