Minimal Unity version for "Unity test framework" package

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??)

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?

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

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.

5115659--505043--upload_2019-10-28_23-17-46.png

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.

This works, but why can’t i upgrade from 1.0.x to 1.1 ?

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.

I would never have found this if you hadn’t told me… when i click ‘Update’ i intend to update :slight_smile: