You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Added some APIs to the plugin to support unit testing without needing a UWorld, actors, etc. #jira UE-182327 #rb mattias.hornlund #preflight 642da9944d26bcd1eb1200b9 [CL 24931730 by Ryan Gerleve in ue5-main branch]
31 lines
853 B
C++
31 lines
853 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Logging/LogScopedVerbosityOverride.h"
|
|
#include "Modules/ModuleManager.h"
|
|
#include "NetworkPredictionTests.h"
|
|
#include "SlateGlobals.h"
|
|
#include "Styling/SlateWidgetStyleContainerBase.h"
|
|
#include "TestCommon/Initialization.h"
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
DEFINE_LOG_CATEGORY(LogNetworkPredictionTests);
|
|
|
|
GROUP_BEFORE_GLOBAL(Catch::DefaultGroup)
|
|
{
|
|
{
|
|
// Silence some warnings during initialization unrelated to the tests
|
|
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("NetworkPrediction"));
|
|
}
|
|
|
|
GROUP_AFTER_GLOBAL(Catch::DefaultGroup)
|
|
{
|
|
CleanupAll();
|
|
}
|