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.
  2. Dismiss Notice

How the test runner find test cases for package?

Discussion in 'Testing & Automation' started by unity_nDI54UEnEZerWg, Aug 5, 2020.

  1. unity_nDI54UEnEZerWg

    unity_nDI54UEnEZerWg

    Joined:
    Mar 2, 2020
    Posts:
    3
    I write a package and add the 'Tests' folder write some test code. In a unity project, I import this package as a local package. I write this text in the manifest.json: `"my.package": "file:../../MyPackage"`
    In the unity project, I can not find any test in test runner. Is there any way to run the tests inside the package?
     
  2. unity_nDI54UEnEZerWg

    unity_nDI54UEnEZerWg

    Joined:
    Mar 2, 2020
    Posts:
    3
    OK, I find that I need add 'testables' into my manifest.
     
  3. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,614
  4. jmguillemette

    jmguillemette

    Joined:
    Mar 4, 2015
    Posts:
    53
    Can you show an example of a valid
    "testables" entry?

    im trying to load a lcoal package and no mater what i put in my unit tests are not showing in the test runner
     
  5. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,614
    The docs page I linked shows an example of a valid testables entry.