Skip to content

zoon/NUnitLiteUnityRunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Abandoned!

new version here: nunit-unity3d













NUnitLite Test Runnrer for Unity3D 3.0

Overview

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

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

(Note, that Unity uses criptic names like '9cda786f9571f9a4d863974e5a5a9142')

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 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) 2010 by Andrew Zhilin andrew_zhilin@yahoo.com

About

NUnitLite Test Runnrer for Unity3D 3.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published