2023-06-21 13:28:15 -04:00
|
|
|
using System;
|
|
|
|
using UnityEditor.TestRunner.TestLaunchers;
|
|
|
|
using UnityEditor.TestTools.TestRunner.Api;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace UnityEditor.TestTools.TestRunner.CommandLineTest
|
|
|
|
{
|
|
|
|
[Serializable]
|
|
|
|
internal class LogSavingCallbacks : ScriptableObject, ICallbacks
|
|
|
|
{
|
|
|
|
public void RunStarted(ITestAdaptor testsToRun)
|
|
|
|
{
|
|
|
|
RemotePlayerLogController.instance.StartLogWriters();
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual void RunFinished(ITestResultAdaptor testResults)
|
|
|
|
{
|
|
|
|
RemotePlayerLogController.instance.StopLogWriters();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void TestStarted(ITestAdaptor test)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public void TestFinished(ITestResultAdaptor result)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|