How I should declare unittest class?

In Web there is a lot of examples how to setup .cpp file but no one show how actually its header looks like. How declaration of this class looks like, what is it inheritanse. For example how FMyAwesomeTest.h should looks like for this case?

IMPLEMENT_SIMPLE_AUTOMATION_TEST(FMyAwesomeTest, "Test path.Test name", 
EAutomationTestFlags::ApplicationContextMask | EAutomationTestFlags::ProductFilter)

bool FMyAwesomeTest::RunTest(FString const& Parameters){
return true;

I don’t think they need headers. I’ve checked the source code of UnrealTournament, there’s automation implemented in UTMapTriangleCountTests, but it’s a .cpp only. I didn’t see a header for it.

1 Like