com.unity.test-framework 1.9.0

com.unity.test-framework

Source docs
Notes: processed

Browse versions

PreviousNext

Download Options

Direct package downloads captured from Unity's package registry.

No direct package download is available for this version.

Unity Compatibility

No Unity compatibility metadata provided.

Package Dependencies

Changes

  • Fixed test span ids colliding between two projects of one test run when the operating system reused the process id of an earlier editor, which merged the two projects' results and dropped the later project's tests (UTR-1336).
  • Player test runs launched with `-automated` no longer restore the graphics API settings they overrode when the run finishes, to avoid the overhead of reimporting dependent assets at the end of a test run.
  • Fixed test file reference generation for player builds throwing on a test tree node that carries its method and type information on its parent, which prevented `TestFileReferences.json` from being written at all and left every test in the run without a file name (UTR-901).
  • Added the public `TestRunProfiler` API (`UnityEditor.TestTools.TestRunner.Api`): packages and test code can report named timing spans into the test-profiling trace during automated test runs, using `BeginSpan` for nested scopes with attributes and failure state, or `RecordSpan` for back-dated timings.
  • Fixed an issue where custom build post-processors (`IPostprocessBuildWithReport`, `[PostProcessBuild]`) could not reliably determine auto-run intent during Test Runner player builds, and where post-processor errors did not properly abort the test run (UUM-147202).
  • Added the `TestPlayerBuildInfo` static class with an `IsAutoRunPlayer` property, providing a public API for build callbacks to check whether the Test Runner intends to auto-run the player after building.
  • Fixed an issue where assembly-level ITestAction attributes with ActionTargets.Test were not invoked for individual test methods, and ITest.Fixture was null when accessed from ITestAction callbacks (UUM-137121).