3#include <State/Message.hpp>
7#include <core/application/MinimalApplication.hpp>
8#include <core/application/MockApplication.hpp>
10#include <ossia/network/domain/domain.hpp>
15#include <catch2/reporters/catch_reporter_event_listener.hpp>
16#include <catch2/reporters/catch_reporter_registrars.hpp>
24struct ScoreTestApplicationStarter final : Catch::EventListenerBase
26 using Catch::EventListenerBase::EventListenerBase;
41 std::unique_ptr<score::MinimalApplication> app;
43 void testRunStarting(
const Catch::TestRunInfo&)
override
45#if !defined(__EMSCRIPTEN__)
46 if(!qEnvironmentVariableIsSet(
"QT_QPA_PLATFORM"))
47 qputenv(
"QT_QPA_PLATFORM",
"offscreen");
49 app = std::make_unique<score::MinimalApplication>();
52 void testRunEnded(
const Catch::TestRunStats&)
override { app.reset(); }
55CATCH_REGISTER_LISTENER(ScoreTestApplicationStarter)