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 Unity2018.3
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;
- 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