Getting Unit Tests to Show Up

Hey there,

I am trying to get Unit tests set up and working in my teams project. I seem to be having a nightmare getting Unreal to show them in the session front end. Below is the code I use to write my Unit test.

IMPLEMENT_SIMPLE_AUTOMATION_TEST(FActionComponentDestroy, "HotGlue.Unit.ActionPointComponent.Estimation", EAutomationTestFlags::ATF_Editor)
bool FActionComponentDestroy::RunTest(const FString& Parameters)
{
    return false;
}

ActionPointComponentTest.cpp

I have also tried to place the macros in the header with no success. The weird thing is that at one point they did show up and I could run them however they would never update. I deleted the binaries and rebuilt and they were gone and never returned.

My question is what witchcraft do I have to do to get them to show up in Unreals UI?

Thank you,

You have to restart the editor for the frontend tests to update correctly. Not sure why its like this, but [this][1] might be helpful. Here is an example of how I set my tests up (version 4.16)

IMPLEMENT_SIMPLE_AUTOMATION_TEST(MyClassSomethingTest, "Game.MyClass Something", EAutomationTestFlags::ApplicationContextMask | EAutomationTestFlags::SmokeFilter)


bool MyClassSomethingTest::RunTest(const FString& params)
{
	return true;
}

I could be wrong, but sometimes when I do not include “Something” in Game.MyClass Something and instead put Game.MyClass the test will no longer show up. I am also looking for an alternative to ue4 unit testing so if you find anything out please let me know.

[1]: