-
Notifications
You must be signed in to change notification settings - Fork 0
Testing
Jason Wang edited this page Jul 30, 2018
·
1 revision
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.


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
You can also use the Unity Debugger

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