# How to run smoke tests on game start?

**URL:** <https://forums.unrealengine.com/t/how-to-run-smoke-tests-on-game-start/680138>\
**Category:** Feedback & Requests\
**Tags:** testing, automated-testing, unreal-engine\
**Created:** [October 30, 2022, 10:30am UTC](https://forums.unrealengine.com/t/how-to-run-smoke-tests-on-game-start/680138 "2022-10-30T10:30:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monogenesis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monogenesis/32/558284_2.png) [@Monogenesis](https://forums.unrealengine.com/u/Monogenesis)\
**Post date:** [October 30, 2022, 10:30am UTC](https://forums.unrealengine.com/t/how-to-run-smoke-tests-on-game-start/680138/1 "2022-10-30T10:30:42Z")

</div>

Hello,

the Unreal Engine documentation states about smoke tests the following: “They are intended to be fast so they can run _everytime_ the Editor, game, or commandlet starts”.

How can I start these smoke tests automatically when I start the game? The only way to start those tests I found is from within the editor inside the Session Frontend window.

---

<div class="post-metadata">

**Author:** ![SvargasUA1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SvargasUA1](https://forums.unrealengine.com/u/SvargasUA1)\
**Post date:** [July 6, 2023, 3:25pm UTC](https://forums.unrealengine.com/t/how-to-run-smoke-tests-on-game-start/680138/2 "2023-07-06T15:25:35Z")

</div>

I wrap TestTrue() calls into check(), and that stops execution if a test (created by IMPLEMENT\_SIMPLE\_AUTOMATION\_TEST) fails. This allows to see if all tests pass at Editor start.  
However, I am not happy with the time it takes before RunSmokeTests() is called, as it needs to load the editor first. Looking for a way to do it faster, and UnrealFrontend.exe doesn’t seem to do what I want. Thinking maybe I can run UnrealEditor-Core.dll directly (this is where RunSmokeTests() is called from at startup).

---

<div class="post-metadata">

**Author:** ![SvargasUA1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SvargasUA1](https://forums.unrealengine.com/u/SvargasUA1)\
**Post date:** [July 6, 2023, 3:26pm UTC](https://forums.unrealengine.com/t/how-to-run-smoke-tests-on-game-start/680138/3 "2023-07-06T15:26:00Z")

</div>

This seems to be in the direction I am digging: [Dangerous Stunt: Running Unreal Engine modules outside of UE (commando style!)](https://gamedevtricks.com/post/going-commando/)
