Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Upgraded to unity 2021.3 from 2020.3 and NUnit Standalone doesn't work

Discussion in 'Testing & Automation' started by rbitard, May 11, 2022.

  1. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    162
    Hello, I can't launch my unit tests in NUnit standalone anymore since I upgraded my unity version, do you know what I should do to enable this mode again ?
     
  2. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    162
    When I run them in edit mode it works but in Nunit standalone they are marked as Inconclusive and displayed in yellow
     
  3. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,578
    What do you mean by 'NUnit Standalone'? I don't think that's something we have ever officially supported.
     
  4. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    162
    It's a test runner using Rider, it worked fine before upgrading but now it might be missing something, looks like a type or a dll
     
  5. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    162
    @superpig I deleted unityengine and unityeditor references in the assembly definition for my tests.
    I may have had same following a tutorial but since I unit test outside of the framework layer I don't need them.
    It worked prior upgrading but I had to update my test assembly after the upgrade.

    Thanks for the help
     
    baptistee and superpig like this.