You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
817 B
34 lines
817 B
#if TEST_FRAMEWORK
|
|
using NUnit.Framework.Interfaces;
|
|
using Packages.Rider.Editor.UnitTesting;
|
|
using UnityEngine.TestRunner;
|
|
|
|
[assembly: TestRunCallback(typeof(SyncTestRunCallback))]
|
|
|
|
namespace Packages.Rider.Editor.UnitTesting
|
|
{
|
|
public class SyncTestRunCallback : ITestRunCallback
|
|
{
|
|
public void RunStarted(ITest testsToRun)
|
|
{
|
|
}
|
|
|
|
public void RunFinished(ITestResult testResults)
|
|
{
|
|
SyncTestRunEventsHandler.instance.OnRunFinished();
|
|
}
|
|
|
|
public void TestStarted(ITest test)
|
|
{
|
|
if (!test.IsSuite)
|
|
SyncTestRunEventsHandler.instance.OnTestStarted(test.FullName);
|
|
}
|
|
|
|
public void TestFinished(ITestResult result)
|
|
{
|
|
if (!result.Test.IsSuite)
|
|
SyncTestRunEventsHandler.instance.OnTestFinished();
|
|
}
|
|
}
|
|
}
|
|
#endif |