- Home /
Question by
wakywaky · Jul 02, 2014 at 03:21 PM ·
scenetestingcommand-line
Running scene-dependent unit tests from the command line
I have an issue with my unit tests, using the Unity Test Suite. My game only uses a single scene, and I need this scene to be loaded in order for my tests to pass (I fetch GameObjects from the scene). When I'm running the tests from Unity3D's GUI, everything works fine and dandy.
However, when I'm running them from the command line, the scene isn't loaded, and my attempts to fetch GameObjects from the scene always end up returning 'null'. I tried calling Application.LoadLevel, but it doesn't seem to have any effect. It has an effect in the Unity Editor: if the scene is already playing, it reloads it. Otherwise it doesn't do anything.
Is there a way for me to run these tests from the command line ?
Comment
Your answer
