6#include <LkEngine/Core/LObject/ObjectPtr.h>
8#include "LTesto/Core/AutomationTest.h"
32 CORE_API
void RunTests(
const Test::ETestSuite Suite = Test::ETestSuite::All)
const;
37 CORE_API
bool StartTest(
const std::string& TestName);
42 CORE_API
bool StopTest(
const std::string& TestName);
52 FORCEINLINE CORE_API
void SetCaptureStack(
const bool Enabled)
54 bCaptureStack = Enabled;
61 using FTestCreator = std::function<std::shared_ptr<Test::LAutomationTest>()>;
75 const std::vector<FTestCreator>& GetTests(
const Test::ETestSuite Suite)
const
77 static const std::vector<FTestCreator> EmptySuite;
91 std::unordered_map<Test::ETestSuite, std::vector<FTestCreator>>
TestCreatorMap;
94 CORE_API
static bool bCaptureStack;
Core macros used by the entire engine.
Definition TestManager.h:13
CORE_API bool StartTest(const std::string &TestName)
Definition TestManager.cpp:118
void AddToSuite(const Test::ETestSuite Suite, FTestCreator CreatorFunc)
Definition TestManager.h:67
CORE_API bool RegisterAutomationTest(const std::string &TestName, Test::LAutomationTest *InTestInstance)
Definition TestManager.cpp:22
CORE_API bool UnregisterAutomationTest(const std::string &TestName, Test::LAutomationTest *InTestInstance)
Definition TestManager.cpp:43
CORE_API bool StopTest(const std::string &TestName)
Definition TestManager.cpp:145
std::unordered_map< std::string, Test::LAutomationTest * > TestInstanceMap
Test instances.
Definition TestManager.h:86
std::function< std::shared_ptr< Test::LAutomationTest >()> FTestCreator
Definition TestManager.h:61
Test::LAutomationTest * GetCurrentTest() const
Definition TestManager.h:47
std::unordered_map< Test::ETestSuite, std::vector< FTestCreator > > TestCreatorMap
Definition TestManager.h:91
Definition AutomationTest.h:52