Skip to content

tebz/nunit-unity3d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NUnitLite 0.7 Test Runner for Unity3D 4.x

Overview

This is a test runner for NUnitLite, that redirects test results to Unity3D console.

Works under full AOT condition (IOS etc.).

After compilation of C# files Unity gives you two assemblies:

  • Assembly-CSharp-firstpass.dll for 'Plugins' and '[Pro] Standard Assets'
  • Assembly-CSharp.dll for other scripts

Then, if you want to have tests in both places - you should call UnityTestRunner.RunTests() from both places. One call per assembly is enough, but you can call it as many times as you want - all calls after first are ignored.

All of the above is correct for UnityScript (*.js) scripts too.

You can use 'MonoBahavior' classes for tests, but Unity gives you one harmless warning per class. Using special Test classes would be a better idea.

Copyright (C) 2013 by Andrew Zhilin andrew_zhilin@yahoo.com

About

NUnitLite 0.7 Test Runner for Unity3D 4.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%