Automated Testing Framework
August 7, 2024Less than 1 minute
Automated Testing Framework
IMPLEMENT_SIMPLE_AUTOMATION_TEST(FPlaceholderTest, "TestGroup.TestSubgroupPlaceholder Test", EAutomationTestFlags::EditorContext | EAutomationTestFlags::EngineFilter)
bool FPlaceholderTest::RunTest(const FString& Parameters)
{
// 通过返回"真(true)"使测试通过,或者返回"假(false)"使测试失败。
return true;
}
控制面板在Tools->Session Frontend->Automation
Reference
- https://dev.epicgames.com/documentation/en-us/unreal-engine/automation-test-framework-in-unreal-engine
- https://dev.epicgames.com/documentation/en-us/unreal-engine/automation-spec-in-unreal-engine
- https://dev.epicgames.com/documentation/zh-cn/unreal-engine/write-cplusplus-tests-in-unreal-engine?application_version=5.4