AutoTest: Support gathering failed tests

Mark test tree items as failed for the last run
to be able to re-run them in an easier way.

Change-Id: I7ea3dcd16e5a02797d41f13e02b2fa95b857cf5e
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2020-09-11 14:30:15 +02:00
parent b4987f8fc9
commit 5f22126a79
16 changed files with 276 additions and 4 deletions

View File

@@ -71,6 +71,7 @@ public:
QList<TestConfiguration *> getAllTestConfigurations() const override;
QList<TestConfiguration *> getSelectedTestConfigurations() const override;
QList<TestConfiguration *> getFailedTestConfigurations() const override;
bool canProvideTestConfiguration() const override { return type() != Root; }
bool canProvideDebugConfiguration() const override { return canProvideTestConfiguration(); }
TestConfiguration *testConfiguration() const override;
@@ -83,6 +84,8 @@ private:
BoostTestTreeItem::TestStates state,
const QString &proFile) const;
QString prependWithParentsSuitePaths(const QString &testName) const;
QList<TestConfiguration *> getTestConfigurations(
std::function<bool(BoostTestTreeItem *)> predicate) const;
bool modifyTestContent(const BoostTestParseResult *result);
TestStates m_state = Enabled;
QString m_fullName;