Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How I speed up my Unity tests

Discussion in 'Testing & Automation' started by Minitrope, Feb 17, 2021.

  1. Minitrope

    Minitrope

    Joined:
    May 21, 2020
    Posts:
    4
    Hello everyone,

    I wanted to share a tip about how I speed up my Unity tests.
    I published a blog post about it: https://gameconductor.net/blog/unity-test-tip-how-to-speedup-your-tests-with-one-simple-trick.html

    But here is the TL;DR:

    - Use Time.timeScale with a value >1 in your Setup methods to change the pace of the game
    - Make sure your waits are affected by it (WaitForSeconds is by default)

    Let me know if you find it useful, and/or if you find any specific problems with it.

    Cheers!
     
    Wappenull and JesseSTG like this.