Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ITestRunCallback.cs 1.3KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using NUnit.Framework.Interfaces;
  3. namespace UnityEngine.TestRunner
  4. {
  5. /// <summary>
  6. /// Interface for getting callsbacks on test progress directly from NUnit. This is available both in the editor and directly in the runtime. It is registered by using <see cref="TestRunCallbackAttribute"/>.
  7. /// </summary>
  8. public interface ITestRunCallback
  9. {
  10. /// <summary>
  11. /// A callback invoked when a test run is started.
  12. /// </summary>
  13. /// <param name="testsToRun">The full loaded test tree.</param>
  14. void RunStarted(ITest testsToRun);
  15. /// <summary>
  16. /// A callback invoked when a test run is finished.
  17. /// </summary>
  18. /// <param name="testResults">The result of the test run.</param>
  19. void RunFinished(ITestResult testResults);
  20. /// <summary>
  21. /// A callback invoked when each individual node of the test tree has started executing.
  22. /// </summary>
  23. /// <param name="test">The test node currently executed.</param>
  24. void TestStarted(ITest test);
  25. /// <summary>
  26. /// A callback invoked when each individual node of the test tree has finished executing.
  27. /// </summary>
  28. /// <param name="result">The result of the test tree node after it had been executed.</param>
  29. void TestFinished(ITestResult result);
  30. }
  31. }