2022-01-12 10:06:03 +03:00
|
|
|
using System;
|
|
|
|
using NUnit.Framework.Interfaces;
|
|
|
|
|
|
|
|
namespace Packages.Rider.Editor.UnitTesting
|
|
|
|
{
|
2022-01-12 10:39:15 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Is used by Rider Unity plugin by reflection
|
|
|
|
/// </summary>
|
2022-01-12 10:06:03 +03:00
|
|
|
[Serializable]
|
2022-01-12 10:39:15 +03:00
|
|
|
public enum EventType { TestStarted, TestFinished, RunFinished, RunStarted } // do not reorder
|
2022-01-12 10:06:03 +03:00
|
|
|
|
2022-01-12 10:39:15 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Is used by Rider Unity plugin by reflection
|
|
|
|
/// </summary>
|
2022-01-12 10:06:03 +03:00
|
|
|
[Serializable]
|
|
|
|
public class TestEvent
|
|
|
|
{
|
|
|
|
public EventType type;
|
|
|
|
public string id;
|
|
|
|
public string assemblyName;
|
|
|
|
public string output;
|
|
|
|
public TestStatus testStatus;
|
|
|
|
public double duration;
|
|
|
|
public string parentId;
|
|
|
|
|
|
|
|
public TestEvent(EventType type, string id, string assemblyName, string output, double duration, TestStatus testStatus, string parentID)
|
|
|
|
{
|
|
|
|
this.type = type;
|
|
|
|
this.id = id;
|
|
|
|
this.assemblyName = assemblyName;
|
|
|
|
this.output = output;
|
|
|
|
this.testStatus = testStatus;
|
|
|
|
this.duration = duration;
|
|
|
|
parentId = parentID;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|