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

Question Basic tutorial on profiling Test Runner Unit tests?

Discussion in 'Testing & Automation' started by GilesDMiddleton, Feb 17, 2018.

  1. GilesDMiddleton

    GilesDMiddleton

    Joined:
    Aug 12, 2015
    Posts:
    91
    I've been a good engineer, and most of my code is testable.
    Recently I discovered my tests were running very slowly, and I tried to profile them using the Unity profiler.
    But even when I enabled 'profile editor', nothing useful seems to appear. And quite often unity crashes or fails to finish running the test.

    Is there a basic tutorial on how to profile unit tests run by the test runner? Am I missing something? Do I have to provide some draw-call method to create frames to simulate a frame capture? I'm not even doing anything graphical, it's pure POCO.

    I'm running the latest version of Unity with Visual Studio Community Edition for Mac, I've also tried VSCode.
     
    AcademyOfFetishes likes this.