File indexing completed on 2024-05-12 04:39:23
0001 /* 0002 SPDX-FileCopyrightText: 2016 Carlos Nihelton <carlosnsoliveira@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "test_plugin.h" 0008 0009 // SUT 0010 #include "plugin.h" 0011 // KDevPlatform 0012 #include <tests/autotestshell.h> 0013 #include <tests/testcore.h> 0014 #include <shell/problem.h> 0015 // Qt 0016 #include <QTest> 0017 0018 using namespace KDevelop; 0019 // using namespace ClangTidy; 0020 0021 void TestClangTidyPlugin::initTestCase() 0022 { 0023 AutoTestShell::init(); 0024 TestCore::initialize(Core::NoUi); 0025 } 0026 0027 void TestClangTidyPlugin::cleanupTestCase() 0028 { 0029 TestCore::shutdown(); 0030 } 0031 0032 void TestClangTidyPlugin::testPlugin() 0033 { 0034 ClangTidy::Plugin plugin(nullptr); 0035 QCOMPARE(plugin.configPages(), 1); 0036 QVERIFY(!plugin.allAvailableChecks().isEmpty()); 0037 } 0038 0039 QTEST_GUILESS_MAIN(TestClangTidyPlugin); 0040 0041 #include "moc_test_plugin.cpp"