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

Running tests from UPM packages

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

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    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,649
    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,562
    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.