Search Unity

Running tests from UPM packages

Discussion in 'Testing & Automation' started by liortal, Jul 4, 2020.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,506
    A lot of packages come with a set of tests (which is great!).
    However, these tests are not listed in the test runner window and i could not find a simple way to execute them.

    I know i can "embed" the package inside my project and probably then get access to those tests, but seems like a bit of an overhead.

    Is there any way to do this at the moment ?
     
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,486
    I'm curious what your use case is for this - if you've not modified the packages in question (so they're not embedded in your project), why do you want to run their tests?

    Take a look at "Enabling tests for a package" at the bottom of this manual page.
     
  3. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,506
    I just want to make sure they are green :) i might be using a new Unity version or some other configuration that who knows if was tested before (of course i could be wrong on this...)
     
    superpig likes this.
unityunity