File indexing completed on 2024-05-12 04:38:22

0001 /*
0002     SPDX-FileCopyrightText: 2012 Miha Čančula <miha@noughmad.eu>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_TEST_TESTCONTROLLER_H
0008 #define KDEVPLATFORM_TEST_TESTCONTROLLER_H
0009 
0010 #include <QObject>
0011 
0012 #include <itestcontroller.h>
0013 
0014 namespace KDevelop {
0015 
0016 class ITestSuite;
0017 class IProject;
0018 class TestController;
0019 
0020 class TestTestController : public QObject
0021 {
0022     Q_OBJECT
0023 
0024 private Q_SLOTS:
0025     void initTestCase();
0026 
0027     void addSuite();
0028     void removeSuite();
0029     void replaceSuite();
0030 
0031     void findByProject();
0032     void testResults();
0033 
0034     void cleanupTestCase();
0035 
0036 private:
0037     void emitTestResult(ITestSuite* suite, TestResult::TestCaseResult caseResult);
0038 
0039     TestController* m_testController;
0040     IProject* m_project;
0041 };
0042 
0043 }
0044 
0045 #endif // KDEVPLATFORM_TEST_TESTCONTROLLER_H