Skip to content

How to Run Svelto.Tasks.Tests

Sebastiano Mandalà edited this page Jul 27, 2018 · 1 revision

How to run the examples:

All the main gameobjects are disabled on start, you can enable them separately to run different tests:

  • TestRunner -> C Sharp test Driver

this will run the basic unit tests, the should always succeed. Pay attention, the tests can take several seconds to complete.

  • TestRunner -> Example Parallel Tasks

this will run a combination of Parallel and Serial tasks using the standard StartCoroutine

  • TestRunner -> Example Parallel Tasks Managed

this will run a combination of Parallel and Serial Tasks using TaskRunner

  • TestRunner -> Example Serial Tasks

this will run Serial tasks using the standard StartCoroutine

  • TestRunner -> Example Task Routine

this will show how to use a ITaskRoutine which can be paused, resumed and restarted

  • TestRunner -> Example Parallel Task Managed MT

this will show how to run parallel tasks on another thread

  • TestRunner -> Example Promises

this will show how to take advantage of the features that can intercept exceptions or tasks stopped on purpose

  • UnityVSTaskRunner

if enabled, this will compare the time taken to run 15000 tasks with the standard StartCoroutine and TaskRunner. Press space to switch between methods

  • SingleThreadVSMultiThread

show the performance you can gain from using the Multithread feature. Enable one monobehaviour at time to show the SingleThread and the MultiThread difference in performance.

Clone this wiki locally