TestEvent.cs 989 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using NUnit.Framework.Interfaces;
  3. namespace Packages.Rider.Editor.UnitTesting
  4. {
  5. /// <summary>
  6. /// Is used by Rider Unity plugin by reflection
  7. /// </summary>
  8. [Serializable]
  9. public enum EventType { TestStarted, TestFinished, RunFinished, RunStarted } // do not reorder
  10. /// <summary>
  11. /// Is used by Rider Unity plugin by reflection
  12. /// </summary>
  13. [Serializable]
  14. public class TestEvent
  15. {
  16. public EventType type;
  17. public string id;
  18. public string assemblyName;
  19. public string output;
  20. public TestStatus testStatus;
  21. public double duration;
  22. public string parentId;
  23. public TestEvent(EventType type, string id, string assemblyName, string output, double duration, TestStatus testStatus, string parentID)
  24. {
  25. this.type = type;
  26. this.id = id;
  27. this.assemblyName = assemblyName;
  28. this.output = output;
  29. this.testStatus = testStatus;
  30. this.duration = duration;
  31. parentId = parentID;
  32. }
  33. }
  34. }