Get SpatialOS

Sites

Menu

Test overview

We use tests to validate functionality and to ensure that the SpatialOS GDK for Unity (GDK) and the framework as a whole are resilient under different conditions.

Test categories

We have two main test categories:

  • Tools tests, such as testing the linter
  • Unity tests - these test the Unity project which forms part of the GDK

The tests in both of these categories use the NUnit testing framework. NUnit is the open source library that’s included with Unity; it forms the basis of the Unity Test Runner. See the NUnit’s documentation and Unity’s User Manual Test Runner documentation for further information.

Where to find test code

  • The documentation linter tests are in tools\DocsLinter\Tests.
  • The code generator tests are in workers\unity\Packages\com.improbable.gdk.tools\.CodeGenerator\src\Tests.
  • For the Unity tests, each GDK Module has its own Tests directory.
    • For example: workers\unity\Packages\com.improbable.gdk.core\Tests

Find out more about the GDK Unity project test directory structure and file names in Testing guidelines.

Further information

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums