Is it possible to add an AutomationTest in a game module?
I would like to add some unit tests for code contained in the game module. I'm following the documentation found at https://docs.unrealengine.com/latest/INT/Programming/Automation/TechnicalGuide/index.html, registering the AutomationTest using IMPLEMENT_SIMPLE_AUTOMATION_TEST and including its corresponding RunTest method.
However, seems like the test is not registered, and never shows up in the Session Frontend > Automation list.
Are Automation Tests only intended for Engine modules? Or perhaps I'm missing an undocumented step?
Good news, AutomationTest are fully functional from Game module. I've got I first failing test working, just adding a source file MyClassTest.cpp inside a /Test folder in my regular game source dir containing :
The test was automatically added in the Session Frontend. Nothing to do.
I've not longer experienced UE4 testing, but Engine/Source/Runtime/Core/Private/Tests/ should be a good starting point!
answered Aug 19 '14 at 01:36 PM
How do you run tests marked with ATF_Game? There are automation tests I'd like to write that would launch the game and test stuff in the world.
answered Dec 12 '14 at 08:08 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here