Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Resolved Minimal Unity version for "Unity test framework" package

Discussion in 'Testing & Automation' started by liortal, Oct 25, 2019.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,446
    I wanted to try out all the neat stuff shown at Unite Copenhagen, so i launched Unity 2019.2.0f1 and imported the package via Package Manager.

    Unfortunately, i do not have access to TestRunnerApi as was shown in the code examples in the video from Unite

    Looking at the package.json file shows the "minimal version" as 2019.2.10 (am i reading this correctly??)
    upload_2019-10-25_16-3-11.png

    So, is this really the minimal version that supports all the new features? or can i use an older version? or which package version includes those new features?
     

    Attached Files:

  2. Warnecke

    Warnecke

    Unity Technologies

    Joined:
    Nov 28, 2017
    Posts:
    60
    Hey. The test framework requires 2019.2.0a10, which you got, so that is fine. 1.0.18 is the version that is shipped together with the 2019.2 editor by default. You are able to update to a newer version of the test framework from inside the package manager. For the test runner api you would need any version 1.1.x
     
  3. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,446
    Actually with 2019.2.0, i have 1.0.13 by default when i create a new project. Then in the Package manager UI i can only upgrade to 1.0.18, but not to anything above.

    upload_2019-10-28_23-17-46.png
     
  4. Warnecke

    Warnecke

    Unity Technologies

    Joined:
    Nov 28, 2017
    Posts:
    60
    Ah, okay. It is because the update will not let you just from 1.0.x to 1.1.x. You need to find the "Test Framework" in the list to the left, expand it and click "See all versions". There you will find 1.1.5 as the newest.
     
  5. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,446
    This works, but why can't i upgrade from 1.0.x to 1.1 ?
     
  6. Warnecke

    Warnecke

    Unity Technologies

    Joined:
    Nov 28, 2017
    Posts:
    60
    I am not certain about this, but I believe that it is a restriction in the package manager to ensure that you do not jump a minor version, without intending to do so.

    But you should still be able to click on `1.1.5` and then press update to that version, in order to enter the `1.1.x` minor version.
     
  7. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,446
    I would never have found this if you hadn't told me... when i click 'Update' i intend to update :)
     
unityunity