Skip to content

Tests

Unit tests use Unity Test Framework.

Performance tests use Performance Testing Extension for Unity Test Framework.

  • ECSTestsFixture.cs has been copied from com.unity.entities@1.0.0-exp.8/Unity.Entities.Tests to EntitiesTestsFixture.cs and refactored. It is now a base of all tests that tests systems.
  • Tests don't work in runtime in Play mode. They work in Editor, each test setups its own environment and its own new temporary World. Each tests initialize in the World only these systems and groups that are needed.

Run tests

  • Go to Window/General/Test Runner.
  • Click test or group of tests that you want to run, right mouse click, Run.

Show performance tests results

  • Run performance test(s).
  • Go to Window/Analysis/Performance Test Report.
  • Click Refresh.