// Copyright Epic Games, Inc. All Rights Reserved. #include "Iris/IrisConfig.h" #include "Logging/LogScopedVerbosityOverride.h" #include "Misc/CommandLine.h" #include "Modules/ModuleManager.h" #include "Net/Core/Trace/Private/NetTraceInternal.h" #include "ProfilingDebugging/TraceAuxiliary.h" #include "SlateGlobals.h" #include "Styling/SlateWidgetStyleContainerBase.h" #include "TestCommon/Initialization.h" #include GROUP_BEFORE_GLOBAL(Catch::DefaultGroup) { // Initialize trace FString Parameter; if (FParse::Value(FCommandLine::Get(), TEXT("-trace="), Parameter, false)) { FTraceAuxiliary::Initialize(FCommandLine::Get()); FTraceAuxiliary::TryAutoConnect(); } #if UE_NET_TRACE_ENABLED uint32 NetTraceVerbosity; if(FParse::Value(FCommandLine::Get(), TEXT("-nettrace="), NetTraceVerbosity)) { FNetTrace::SetTraceVerbosity(NetTraceVerbosity); } #endif UE::Net::SetUseIrisReplication(true); { // Silence some warnings during initialization unrelated to the replication system LOG_SCOPE_VERBOSITY_OVERRIDE(LogSlate, ELogVerbosity::Error); LOG_SCOPE_VERBOSITY_OVERRIDE(LogSlateStyle, ELogVerbosity::Error); LOG_SCOPE_VERBOSITY_OVERRIDE(LogUObjectGlobals, ELogVerbosity::Error); InitAll(true, true); } FModuleManager::Get().LoadModule(TEXT("IrisCore")); } GROUP_AFTER_GLOBAL(Catch::DefaultGroup) { CleanupAll(); }