How do I get a simple test to appear on a server?

I am trying to run a test on a server. I launch a standalone game and use the Session Frontend to select the server session - the session that says “server”.

My test doesn’t appear when I use ServerContext. I have tried all combinations of filter flags.

However, the tests do show up when the ClientContext is used. When launching with Standalone game, the tests appear on both the “Game” and “Server” sessions.

Additionally, no test will appear in this menu when selecting the StressFilter.

Below is my code.

IMPLEMENT_SIMPLE_AUTOMATION_TEST(FTestItShowsUp, "MyGame.ItShowsUp", EAutomationTestFlags::ServerContext | EAutomationTestFlags::ProductFilter)

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

Important note: Hotloading tests does not work. You must restart the Unreal Editor to see a change in the compiled tests.

So, I can run these test with the ClientFilter, but it feels like I’d be doing it wrong. It won’t help me separate my client and server tests. (Each test would need to check what mode it is in.)

Should we be using IMPLEMENT_NETWORKED_AUTOMATION_TEST ? I don’t see anything about it anywhere…

Okay, I’m working around this by labeling everything as client and using the name/folder of the test to determine whether it is for clients or servers.