# How can I make my test case show up in a launched game?

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-my-test-case-show-up-in-a-launched-game/451408>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 28, 2019, 9:26am UTC](https://forums.unrealengine.com/t/how-can-i-make-my-test-case-show-up-in-a-launched-game/451408 "2019-06-28T09:26:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c9305f881](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c9305f881](https://forums.unrealengine.com/u/anonymous_user_c9305f881)\
**Post date:** [June 28, 2019, 9:26am UTC](https://forums.unrealengine.com/t/how-can-i-make-my-test-case-show-up-in-a-launched-game/451408/1 "2019-06-28T09:26:26Z")

</div>

I made a plugin mainly containing a test cpp file that is trying to spawn an actor, take a screenshot and make comparison. It’s basically same as what ScreenshotFunctionalTest in functional testing module is doing, but I want to do this by Windows command line prompts rather than heading into the editor and dropping down an ScreenshotFunctionalTest actor in level, as the official guide instructed.

I used the command below:

UE4Editor.exe “MyProjectPath/MyProject.uproject” -unattended -nopause -ExecCmds=“Automation RunTests MyTest” -testexit=“Automation Test Queue Empty” -log=MyLog.log

It worked well except one thing is that it is trying to open an editor instance which takes trenmdous amount of time for initialization. Theoretically, I can put a -game flag so the test can be run in an uncooked game instance, however, the test case does not show up inside the uncooked game, and I’m trying to figure out why.

One interest thing is that, if I put a ScreenshotFunctionalTest actor in level then save, a functional test case will appear in the automation tag in Session Frontend, and I can run the test by commands afterward, using same command as above but substituting “MyTest” by “Functoinal Tests” and adding a -game flag. However I cannot find which part of the source code is responsible to make the functional tests show up.

In my own test, I tried various automation test flags, making my test a commandlet, making my plugin a runtime module, building in different configurations, but it seems none of these worked. I can still only run my test by openning an editor instance.

Hopefully I can get some helps here, many thanks!
