Download

Unit Tests Seem Overly Complex to Add

I’m trying to get some basic unit tests written for my project and have been using this source as a guide:
https://github.com/EpicGames/UnrealEngine/blob/4.5/Engine/Source/Editor/UnrealEd/Private/Tests/EditorAutomationTests.cpp

I’m basically trying to rip out FLoadAllMapsInEditorTest and use that as a base for new tests. There are quite a few intertwined classes in this set of code and in the end I’ve basically ended up copying everything in the Tests folders to get the 1 unit test to compile.

Setting up an empty unit test was easy but trying to extend an existing unit test seems overly complex. So I wanted to ask if there were a better recommended path if the end goal is to extend an existing unit test.