forked from qt-creator/qt-creator
AutoTest: Ask for runnable if determination failed
There are several complex project layouts that lead to failing to determine the correct runnable for tests. If this happens prompt the user for the runnable to use instead of performing wild guesses or blindly using a wrong one. Task-number: QTCREATORBUG-17882 Task-number: QTCREATORBUG-18922 Task-number: QTCREATORBUG-18932 Change-Id: I1575f310c450e56c087f1e689d0fc7dfb0cd0bef Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
@@ -28,10 +28,17 @@
|
||||
#include "testconfiguration.h"
|
||||
#include "testresult.h"
|
||||
|
||||
#include <QDialog>
|
||||
#include <QFutureWatcher>
|
||||
#include <QObject>
|
||||
#include <QProcess>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QComboBox;
|
||||
class QDialogButtonBox;
|
||||
class QLabel;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace ProjectExplorer {
|
||||
class Project;
|
||||
}
|
||||
@@ -77,5 +84,23 @@ private:
|
||||
QMetaObject::Connection m_buildConnect;
|
||||
};
|
||||
|
||||
class RunConfigurationSelectionDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit RunConfigurationSelectionDialog(const QString &testsInfo, QWidget *parent = nullptr);
|
||||
QString displayName() const;
|
||||
QString executable() const;
|
||||
private:
|
||||
void populate();
|
||||
void updateLabels();
|
||||
QLabel *m_details;
|
||||
QLabel *m_executable;
|
||||
QLabel *m_arguments;
|
||||
QLabel *m_workingDir;
|
||||
QComboBox *m_rcCombo;
|
||||
QDialogButtonBox *m_buttonBox;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Autotest
|
||||
|
||||
Reference in New Issue
Block a user