A forked version of the com.unity.test-framework.performance package (v1.0.4-preview) that includes a dependency on XR APIs for collection of XR metadata during performance test runs
Перейти к файлу
Ejaz Ahmed Mudassir 75dc722135 Fix merging issues (#6) 2020-09-23 13:12:52 -07:00
Editor Fix merging issues (#6) 2020-09-23 13:12:52 -07:00
Runtime Trunk 1.3.3 (#4) 2020-09-21 18:46:14 -07:00
CHANGELOG.md Trunk 1.3.3 (#4) 2020-09-21 18:46:14 -07:00
CHANGELOG.md.meta update metadata files 2020-03-27 14:04:57 -07:00
Editor.meta update metadata files 2020-03-27 14:04:57 -07:00
LICENSE.md Making an XR-customized package version of perf test framework 2019-10-22 12:09:51 -07:00
LICENSE.md.meta update metadata files 2020-03-27 14:04:57 -07:00
README.md update docs 2020-02-18 09:12:15 -08:00
README.md.meta update metadata files 2020-03-27 14:04:57 -07:00
Runtime.meta update metadata files 2020-03-27 14:04:57 -07:00
package.json Trunk 1.3.3 (#4) 2020-09-21 18:46:14 -07:00
package.json.meta update metadata files 2020-03-27 14:04:57 -07:00

README.md

Performance testing extension for Unity Test Runner - customized for XR

A forked version of the com.unity.test-framework.performance package (v1.0.4-preview) that includes a dependency on XR APIs for collection of XR metadata during performance test runs.

Original documentation for the com.unity.test-framework.performance package (v1.0.4-preview) below.

The Unity Performance Testing Extension is a Unity Editor package that, when installed, provides an API and test case decorators to make it easier to take measurements/samples of Unity profiler markers, and other custom metrics outside of the profiler, within the Unity Editor and built players. It also collects configuration metadata, such as build and player settings, which is useful when comparing data for against different hardware and configurations.

Installing

To install the Performance Testing Extension package

  1. Open the manifest.json file for your Unity project (located in the YourProject/Packages directory) in a text editor
  2. Add com.unity.test-framework.performance to the dependencies as seen below
  3. Add com.unity.test-framework.performance to the testables section. If there is not a testables section in your manifest.json file, go ahead and it add.
  4. Save the manifest.json file
  5. Verify the Performance Testing Extension is now installed opening the Unity Package Manager window
  6. Ensure you have created an Assembly Definition file created in the same folder where your tests or scripts are that youll reference the Performance Testing Extension with. This Assembly Definition file needs to reference Unity.PerformanceTesting in order to use the Performance Testing Extension. Example of how to do this:
    • Create a new folder for storing tests in ("Tests", for example)
    • Create a new assembly definition file in the new folder using the context menu (right click/Create/Assembly definition) and name it "Tests" (or whatever you named the folder from step a. above)
    • In inspector for the assembly definition file check "Test Assemblies”, and then Apply.
    • Open the assembly definition file in a text editor and add Unity.PerformanceTesting. To the references section. Save the file when youre done doing this.

manifest.json

{
    "dependencies": {
        "com.unity.xr.test-framework.performance": "ssh://git@github.cds.internal.unity3d.com/unity/com.unity.xr.test-framework.performance.git",
        "com.unity.modules.jsonserialize": "1.0.0",
        "com.unity.modules.unitywebrequest": "1.0.0",
        "com.unity.modules.vr": "1.0.0"
      },
      "testables": [
        "com.unity.xr.test-framework.performance"
      ]
}

assembly definition

{
    "name": "Tests.Editor",
    "references": [
        "Unity.PerformanceTesting"
    ],
    "optionalUnityReferences": [
        "TestAssemblies"
    ],
    "includePlatforms": [
        "Editor"
    ],
    "excludePlatforms": [],
    "allowUnsafeCode": false
}