AutoTest: Add gtest filter mode

This adds another grouping mode to the gtest framework based on
gtest filtering. You can now specify a filter that will be used
to group the gtest tree items into matching and non-matching
tests.

Change-Id: Iaf0e55c9e57e2720f4fa84ab4b51ecaeb614df88
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2018-02-28 09:42:13 +01:00
parent 070b5fdbbb
commit aee959ea1d
15 changed files with 343 additions and 23 deletions

View File

@@ -26,6 +26,7 @@
#pragma once
#include "../itestframework.h"
#include "gtestconstants.h"
namespace Autotest {
namespace Internal {
@@ -39,6 +40,8 @@ public:
IFrameworkSettings *createFrameworkSettings() const override;
ITestSettingsPage *createSettingsPage(QSharedPointer<IFrameworkSettings> settings) const override;
bool hasFrameworkSettings() const override;
static GTest::Constants::GroupMode groupMode();
static QString currentGTestFilter();
protected:
ITestParser *createTestParser() const override;
TestTreeItem *createRootNode() const override;