1 /**************************************************************************** 2 ** 3 ** Copyright (C) 2019 Jochen Seemann 4 ** 5 ** This file is part of Qt Creator. 6 ** 7 ** Commercial License Usage 8 ** Licensees holding valid commercial Qt licenses may use this file in 9 ** accordance with the commercial license agreement provided with the 10 ** Software or, alternatively, in accordance with the terms contained in 11 ** a written agreement between you and The Qt Company. For licensing terms 12 ** and conditions see https://www.qt.io/terms-conditions. For further 13 ** information use the contact form at https://www.qt.io/contact-us. 14 ** 15 ** GNU General Public License Usage 16 ** Alternatively, this file may be used under the terms of the GNU 17 ** General Public License version 3 as published by the Free Software 18 ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT 19 ** included in the packaging of this file. Please review the following 20 ** information to ensure the GNU General Public License requirements will 21 ** be met: https://www.gnu.org/licenses/gpl-3.0.html. 22 ** 23 ****************************************************************************/ 24 25 #pragma once 26 27 #include "../itestframework.h" 28 29 #include "catchtestsettings.h" 30 31 namespace Autotest { 32 namespace Internal { 33 34 class CatchFramework : public ITestFramework 35 { 36 public: CatchFramework()37 CatchFramework() : ITestFramework(true) {} 38 39 const char *name() const override; 40 unsigned priority() const override; 41 42 protected: 43 ITestParser *createTestParser() override; 44 ITestTreeItem *createRootNode() override; 45 46 private: testSettings()47 ITestSettings * testSettings() override { return &m_settings; } 48 CatchTestSettings m_settings; 49 CatchTestSettingsPage m_settingsPage{&m_settings, settingsId()}; 50 }; 51 52 } // namespace Internal 53 } // namespace Autotest 54