2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2019 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2018-12-07 10:00:23 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "../testresult.h"
|
|
|
|
|
|
|
|
|
|
namespace Autotest {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2020-04-16 14:38:36 +02:00
|
|
|
class BoostTestTreeItem;
|
|
|
|
|
|
2018-12-07 10:00:23 +01:00
|
|
|
class BoostTestResult : public TestResult
|
|
|
|
|
{
|
|
|
|
|
public:
|
2021-05-26 15:50:03 +02:00
|
|
|
BoostTestResult(const QString &id, const Utils::FilePath &projectFile, const QString &name);
|
2018-12-07 10:00:23 +01:00
|
|
|
const QString outputString(bool selected) const override;
|
|
|
|
|
|
|
|
|
|
bool isDirectParentOf(const TestResult *other, bool *needsIntermediate) const override;
|
2020-10-13 11:37:37 +02:00
|
|
|
const ITestTreeItem * findTestTreeItem() const override;
|
2018-12-07 10:00:23 +01:00
|
|
|
void setTestSuite(const QString &testSuite) { m_testSuite = testSuite; }
|
|
|
|
|
void setTestCase(const QString &testCase) { m_testCase = testCase; }
|
|
|
|
|
private:
|
2020-04-16 14:38:36 +02:00
|
|
|
bool matches(const BoostTestTreeItem *item) const;
|
|
|
|
|
|
2021-05-26 15:50:03 +02:00
|
|
|
Utils::FilePath m_projectFile;
|
2018-12-07 10:00:23 +01:00
|
|
|
QString m_testSuite;
|
|
|
|
|
QString m_testCase;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Autotest
|