13
\$\begingroup\$

How to implement Unit Test at Unity3D.

I wonder if it would be possible to extend the Unity editor to have some sort of testing framework in it.

  • Is there any guideline to implement it?
  • Any reference like book, blog?
  • Any working example or project?
\$\endgroup\$
4
+50
\$\begingroup\$

I use with success NunitLite with the NunitLiteRunner plugin https://bitbucket.org/fddima/nunitlite/src/8a4e3c72f295?at=default

If you can be interested, I also blogged about IoC container that can help you with testing:

http://blog.sebaslab.com/ioc-container-for-unity3d-part-1/

http://blog.sebaslab.com/ioc-container-for-unity3d-part-2/

Edit: while the blog posts are still useful, you don't need nunitlite anymore nowadays. Unit Test Runner is now integrated in Unity. Unity Test Tools also adds more features on top of that: https://www.assetstore.unity3d.com/en/#!/content/13802

\$\endgroup\$
5
\$\begingroup\$

Regarding Unit Testing code at Unity3D, follow the resources

\$\endgroup\$
4
\$\begingroup\$

There is a free package with test automation tools provided by Unity Technologies in the Asset Store: Unity Test Tools

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.