How do I create an automation test?
So I've spent my weekend trying to learn about automation tests. I understand that I can create them using one of two macros, but I don't know how to implement something I want to do. I also just have some questions about testing in general.
Say I have an actor called AGrid. I would like to run a simple test where I make an empty map (I think you can do this with FAutomationEditorCommonUtils::CreateNewMap()), spawn an AGrid in that empty map, and check that everything is initialized correctly. I just can't seem to make a version of this test that compiles.
Say I have an actor called ASquareGrid, with a function called AddTile(int x, int y, int z). Do I need to spawn a grid as described in the above paragraph, or is there a way to test the actor without spawning it in a map? Can I just declare ASquareGrid as a variable and call functions on it?
Some code examples would be useful, because I just can't seem to find anything online. I'm also not sure if https://docs.unrealengine.com/en-us/Programming/Automation/TechnicalGuide is up to date.
Some code examples would be useful, because I just can't seem to find anything online.
Glad I'm not the only one using the AutomationTesting :D
I recommend using the Engine's tests as a base. I've been wanting to write an "up-to-date tutorial" for half a year now. I may find time to do so today and then post a link to it here.
answered Aug 12 '18 at 09:18 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here