Skip to content

Instantly share code, notes, and snippets.

@fortheday
Created August 10, 2018 02:50
Show Gist options
  • Save fortheday/eae81ba5914258c52f0d84179bc48989 to your computer and use it in GitHub Desktop.
Save fortheday/eae81ba5914258c52f0d84179bc48989 to your computer and use it in GitHub Desktop.
#include "Misc/AutomationTest.h"
#if WITH_DEV_AUTOMATION_TESTS
// 테스트들이 공통되는 기능을 갖는다.
// IMPLEMENT_CUSTOM_SIMPLE_AUTOMATION_TEST()로 테스트당 클래스가 1개씩 생기는 개념
class FMyTestBase : public FAutomationTestBase
{
public:
FMyTestBase(const FString& InName, const bool bInComplexTask)
: FAutomationTestBase(InName, bInComplexTask)
{
}
};
#define MY_TEST_FILTER EAutomationTestFlags::EditorContext|EAutomationTestFlags::ClientContext|EAutomationTestFlags::SmokeFilter
IMPLEMENT_CUSTOM_SIMPLE_AUTOMATION_TEST(FMyTest1, FMyTestBase, "MyGame.MyGroup.MyTest1", MY_TEST_FILTER)
bool FMyTest1::RunTest(const FString& Parameters)
{
return true;
}
IMPLEMENT_CUSTOM_SIMPLE_AUTOMATION_TEST(FMyTest2, FMyTestBase, "MyGame.MyGroup.MyTest2", MY_TEST_FILTER)
bool FMyTest2::RunTest(const FString& Parameters)
{
return false;
}
#endif //WITH_DEV_AUTOMATION_TESTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment