Search Unity

Where is the Test Assembly checkbox in 2019.3?

Discussion in 'Package Manager' started by alexandre-fiset, Sep 10, 2019.

  1. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    359
    Where did the Test Assembly option went in 2019.3?

    upload_2019-9-10_13-43-12.png
     
  2. manu73

    manu73

    Unity Technologies

    Joined:
    Aug 22, 2014
    Posts:
    40
    Hi @alexandre-fiset !

    There's n more Test Assembly option in 2019.3.

    You need to have the Test Framework package and setup your assembly like the this:

    Screen Shot 2019-09-10 at 13.57.03.png

    Best way is to use Assets -> Create -> Testing -> Tests Assembly Folder, it will generate the proper asmdef file.

    Regards,
    EmmanuelH.
     
    alexandre-fiset likes this.
  3. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    359
    Oh nice! Thanks!
     
  4. M_R

    M_R

    Joined:
    Apr 15, 2015
    Posts:
    461
    @manu73 what if I want to support both <= 2019.2 and >= 2019.3?
    if I add the define constraint, does it mean that 2019.2 is never enabling it?
     
  5. manu73

    manu73

    Unity Technologies

    Joined:
    Aug 22, 2014
    Posts:
    40
    Hi @M_R,

    Got answers from team.
    Assembly definition file old format in 2019.2 gets upgraded automatically in 2019.3.
    But if you use 2019.3 new format, it won't be updated, no automatic downgrade.

    Regards,
    EmmanuelH