This is a guide for unit testing Unreal Engine.
It makes an assumption that you have:
- Unreal Engine installed
- Visual Studio 2022 installed
- A project created in Unreal Engine
- Some overall experience with Unreal Engine
- Unit test C++ code.
- Use an out of the box Inversion of Control (IOC) container called
TTypeContainer. An example can be found here. - Make use of Visual Studio 2022's Test Explorer.
- Run a CLI version of Unreal Engine to run the tests.
- See unit tests within Unreal Engine's editor. (Front End Session).
- Utilise dependency injection (DI) for your classes.
Please select the closest version of Unreal Engine you are using: