Skip to content

Testing

Jason Wang edited this page Jul 30, 2018 · 1 revision

Running Unit Tests

To Run Unit Tests you need to go to test running and enable running the Unit Tests. You should see the Unit tests populated in the window. Double click on a Unit Test to run it.

Writing Unit Tests

To write Unit Tests you should be in Assets > Tests > Test.cs

Always Load the Game first and then use AddGameTask to add the appropriate GameTasks for the tests

Using the Unity Debugger

You can also use the Unity Debugger

  1. Go to Visual Studio and put a breakpoint on a function you want to debug.
  2. Press the play button on Unity
  3. Press the play button on Visual Studio (2 and 3 can be interchanged)
  4. Do the action in Unity, you will see the breakpoint being stopped and Unity freezing to evaluate the breakpoint

Clone this wiki locally