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

Resolved Duration of tests in deep namespaces scale exponentially

Discussion in 'Testing & Automation' started by JurjenBiewenga, Sep 16, 2019.

  1. JurjenBiewenga

    JurjenBiewenga

    Joined:
    Mar 28, 2018
    Posts:
    24
    Hey,
    We're running a several tests with a lot of permutations (Around 15000 in total). The duration that these tests make Unity hang is around 10 minutes however the time actually spent executing reported by the Test Runner is around 1 minute.

    I've been checking where the extra time comes from and it looks like it is due it being in a fairly deep namespace.

    Note: there are a few more levels above EditModeTests.

    Removing the namespace all together drastically reduces the time the tests take to run (around 50%).

    What could be the cause of this and how can we solve this?
     
  2. Warnecke

    Warnecke

    Unity Technologies

    Joined:
    Nov 28, 2017
    Posts:
    92
    Hey. Thanks for reporting this. We are aware of the issue, which is a performance regression introduced in 2018.2. We have a fix and it is currently being tested internally. We hope to have the new package version with the fix available this week.
     
    seans_unity3d likes this.
  3. JurjenBiewenga

    JurjenBiewenga

    Joined:
    Mar 28, 2018
    Posts:
    24
    Hey,

    Thanks for the quick response. Glad to see it fixed soon :D
     
  4. Warnecke

    Warnecke

    Unity Technologies

    Joined:
    Nov 28, 2017
    Posts:
    92
  5. JurjenBiewenga

    JurjenBiewenga

    Joined:
    Mar 28, 2018
    Posts:
    24
    Hey,

    We're still on 2019.1 unfortunately, we're trying to upgrade to 2019.2 however we're still waiting on another bug to be fixed.
     
    Warnecke likes this.