diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index adcedb51..0679728f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -66,6 +66,9 @@ target_link_libraries(tst_window kddockwidgets kdbindings) add_executable(tst_platform tst_platform.cpp ${TESTING_RESOURCES}) target_link_libraries(tst_platform kddockwidgets kdbindings) +add_executable(tst_dummyplatform tst_dummyplatform.cpp ${TESTING_RESOURCES}) +target_link_libraries(tst_dummyplatform kddockwidgets kdbindings) + add_executable(tst_group controllers/tst_group.cpp ${TESTING_RESOURCES}) target_link_libraries(tst_group kddockwidgets kdbindings) diff --git a/tests/tst_dummyplatform.cpp b/tests/tst_dummyplatform.cpp new file mode 100644 index 00000000..4abac0b5 --- /dev/null +++ b/tests/tst_dummyplatform.cpp @@ -0,0 +1,38 @@ +/* + This file is part of KDDockWidgets. + + SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company + Author: Sérgio Martins + + SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only + + Contact KDAB at for commercial licensing options. +*/ + +#define DOCTEST_CONFIG_IMPLEMENT + +#include "Platform.h" +#include "dummy/Window_dummy.h" + +#include + +using namespace KDDockWidgets; + + +TEST_CASE("Test pure-virtuals implemented") +{ + Window_dummy dummy; +} + +int main(int argc, char **argv) +{ + doctest::Context ctx; + ctx.applyCommandLine(argc, argv); + + Platform::tests_initPlatform(argc, argv, FrontendType::Dummy); + + const int exitCode = ctx.run(); + Platform::tests_deinitPlatform(); + + return exitCode; +}