Skip to content

A group of unit tests for checking if some methods are "GC clean"

Notifications You must be signed in to change notification settings

TMPxyz/UnityGCTests

Repository files navigation

Unity GC Tests

A group of unity3d unit tests for checking if some methods are "GC Free"

WARNING: the GC behaviours on different versions of Unity might differ, the pics at the bottom shows the result of Unity2023.1 + Mono

How to install

Method 1 : Download the whole git contents into your Assets/Editor directory;

Method 2 : If your project is git-ed, then you can add this git as a submodule under Assets/Editor directory;

How to use

  • Open the Test Runner located at Unity editor's (Window/Test Runner) Menu, select EditMode tab
  • Double-Click "GCTests" item to run the unit tests
  • All unit tests with "OK" prefix means the method used in the test are "GC Free", those with "BAD" prefix are not
  • All unit tests are supposed to pass, if any of them fails, it means the original GC results have changed
  • You're welcome to add new unit tests :D

GCTests1 GCTests2

About

A group of unit tests for checking if some methods are "GC clean"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages