From f50ec041a0f6fa036305ab5d5bdbdb9116b48024 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 8 Jun 2025 12:12:15 +0200 Subject: gui: add more ParticipantEditor editing tests --- gui/tests/gtk-test.hpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 gui/tests/gtk-test.hpp (limited to 'gui/tests/gtk-test.hpp') diff --git a/gui/tests/gtk-test.hpp b/gui/tests/gtk-test.hpp new file mode 100644 index 0000000..5ac6753 --- /dev/null +++ b/gui/tests/gtk-test.hpp @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner + * SPDX-License-Identifier: LGPL-2.1-only + */ + +#ifndef TURNS_GUI_TESTS_GTK_TEST_HPP +#define TURNS_GUI_TESTS_GTK_TEST_HPP + +#include +#include + +#include +#include + +namespace Turns::gui::tests +{ + + struct gtk_test : Catch::EventListenerBase + { + using Catch::EventListenerBase::EventListenerBase; + + static inline Glib::RefPtr application{}; + + auto testRunStarting(Catch::TestRunInfo const &) -> void override; + auto testRunEnded(Catch::TestRunStats const &) -> void override; + auto testCaseEnded(Catch::TestCaseStats const &) -> void override; + }; + + CATCH_REGISTER_LISTENER(gtk_test); + +} // namespace turns::ui::tests + +#endif -- cgit v1.2.3