forked from qt-creator/qt-creator
AutoTest: Support run failed
If the last run had failures and the test frameworks support matching a test result to a test tree item give the user an easy way to re-run all failed tests. Change-Id: I4f3150ca8a6514c09cf7ca819f84e38c6419a310 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -185,6 +185,8 @@ void TestResultsPane::createToolButtons()
|
||||
m_runSelected = new QToolButton(m_treeView);
|
||||
m_runSelected->setDefaultAction(ActionManager::command(Constants::ACTION_RUN_SELECTED_ID)->action());
|
||||
|
||||
m_runFailed = new QToolButton(m_treeView);
|
||||
m_runFailed->setDefaultAction(ActionManager::command(Constants::ACTION_RUN_FAILED_ID)->action());
|
||||
m_runFile = new QToolButton(m_treeView);
|
||||
m_runFile->setDefaultAction(ActionManager::command(Constants::ACTION_RUN_FILE_ID)->action());
|
||||
|
||||
@@ -304,7 +306,7 @@ QWidget *TestResultsPane::outputWidget(QWidget *parent)
|
||||
|
||||
QList<QWidget *> TestResultsPane::toolBarWidgets() const
|
||||
{
|
||||
return {m_expandCollapse, m_runAll, m_runSelected, m_runFile, m_stopTestRun,
|
||||
return {m_expandCollapse, m_runAll, m_runSelected, m_runFailed, m_runFile, m_stopTestRun,
|
||||
m_outputToggleButton, m_filterButton};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user