-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestingBasics.cpp
More file actions
35 lines (26 loc) · 1.21 KB
/
Copy pathTestingBasics.cpp
File metadata and controls
35 lines (26 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "TestingBasics.h"
#include "Misc/AutomationTest.h"
// Github Repository
// https://github.com/CJFEdu/UnrealEngineTestExamples
/* Notes
* Outside of Blueprints and Reflection System
* Console Command Line
* C++ only
* Compile files
* Session Frontend
* Refresh Session Frontend
**/
// Automation Testing documentation https://docs.unrealengine.com/5.1/en-US/automation-technical-guide/
// Source File Recommendation Private\Tests
// Automation Flags documentation https://docs.unrealengine.com/5.1/en-US/API/Runtime/Core/Misc/EAutomationTestFlags__Type/
IMPLEMENT_SIMPLE_AUTOMATION_TEST(TB_SimpleDemo, "TestDemo.Examples.TestingBasics.Simple Demo",
EAutomationTestFlags::EditorContext | EAutomationTestFlags::EngineFilter)
// Automation System Overview https://docs.unrealengine.com/5.1/en-US/automation-system-in-unreal-engine/
// Example tests TimespanTest.cpp and EditorAutomationTests.cpp
// Child of FAutomationTestBase
// Documentation https://docs.unrealengine.com/5.1/en-US/API/Runtime/Core/Misc/FAutomationTestBase/
bool TB_SimpleDemo::RunTest(const FString& Parameters)
{
// Make the test pass by returning true, or fail by returning false.
return true;
}