Embed presentation
Download to read offline












![public static class UnitTestLoader
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
public static void Register()
{
// setup created test class to RegisterAllMethods<T>
UnitTest.RegisterAllMethods<SampleGroup>();
// and add other classes
}
}](https://image.slidesharecdn.com/runtimeunittesttoolkiten-170305052631/75/RuntimeUnitTestToolkit-for-Unity-English-13-2048.jpg)




This document discusses RuntimeUnitTestToolkit, a tool for running unit tests on IL2CPP games. It allows creating unit test classes with public methods that will be automatically registered as tests. Tests can make assertions using the Is method and can be asynchronous by returning IEnumerator. It works with UniRx and allows testing asynchronous coroutines. The tool focuses on play time testing and supports running tests on actual devices.












![public static class UnitTestLoader
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
public static void Register()
{
// setup created test class to RegisterAllMethods<T>
UnitTest.RegisterAllMethods<SampleGroup>();
// and add other classes
}
}](https://image.slidesharecdn.com/runtimeunittesttoolkiten-170305052631/75/RuntimeUnitTestToolkit-for-Unity-English-13-2048.jpg)


