123456789101112131415161718 |
- #if TEST_FRAMEWORK
- using UnityEditor;
- using UnityEditor.TestTools.TestRunner.Api;
- using UnityEngine;
- namespace Packages.Rider.Editor.UnitTesting
- {
- [InitializeOnLoad]
- internal static class CallbackInitializer
- {
- static CallbackInitializer()
- {
- if (CallbackData.instance.isRider)
- ScriptableObject.CreateInstance<TestRunnerApi>().RegisterCallbacks(ScriptableObject.CreateInstance<TestsCallback>(), 0);
- }
- }
- }
- #endif
|