Need help setting up Explicit test

Hello, i need some help setting up explicit tests for my game. I tied following the official documentation for low level tests, but i did not understand step 1 for the explicit tests. Where is the Source/Programs directory being referred to? I have Source directory in my project, and inside it is a folder with my ProjectName along with two target.cs files. For the example directory given, i don’t see any Engine folder in my project

Hi @herrkrabbe10,

Welcome to the forums.

From my understanding, Source/Programs would be in the folder where you have the current version of Unreal Engine installed.
For example for me, its located in: C:\Program Files\Unreal Engine\UE_5.3\Engine\Source\Programs

Note that this is different from the location of my project.

My IDE shows this in the file exploder (Jetbrains, Rider):

Hi @herrkrabbe10,
I am trying to set up explicit tests for game plugins too. But even after several days I failed so far.

The documentation you referring to is meant for Engine Plugins but doesn’t work for existing Game Plugins or uprojects, I guess. Instead of setting up the folder structure with Source/Programs I tried [PluginRoot]/Tests to place the .Target.cs and .Build.cs, and the [TestModuleName] as subfolder as mentioned in the docu. See section " Create an Explicit Test" 2.a. But this overwrites the targets defined by the project and compilation of the project failes in VS.

I am not quite sure if a game plugin is allowed to have an extra target.cs because the Unreal Build Tools complains about that when I try to create VS project files.

Maybe the explicit tests need to go into a separate uproject? I hoped for a way to move explicit LowLevel tests into an extra module inside an existing or an own game plugin.
But now I think it will be easier to treat them as implicit tests to achieve this.

If you have more infos please let me know.