RuntimeUnitTestToolkit for Unity

Yesterday, I talked about Unit Test on Unity with employees of Unity Technologies Japan.

This framework is used in UniRx and today, I released .unitypackage on GitHub.

neuecc/RuntimeUnitTestToolkit

You can use this framework on your unity project!

Unity has unit test framework based on NUnit. But it only supports run on Unity Editor. I need deploying iOS/Android to check IL2CPP. And also need to support asynchronous(coroutine) test.

Image for post
Image for post

This test tool is simple but works well, you only write simple POCO.

It supports plain test(public void method) and asynchronous test(public IEnumerator method).

Next, register there test classes.

Finally play unit test scene.

Image for post
Image for post

Good, that’s all.

RuntimeUnitTestToolkit is used some other my libraries. Currently I am working on a new serializer, MessagePack for C#. It is extremely fast and ofcourse run on Unity.

Next, I’ll report MessagePack for C#. Please look forward to it!

Written by

a.k.a. neuecc. Creator of UniRx, UniTask, MessagePack for C#, MagicOnion etc. Microsoft MVP for C#. CEO/CTO of Cysharp Inc. Live and work in Tokyo, Japan.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store