No Description
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.

ITestRunCallback.cs 1.3KB

12345678910111213141516171819202122232425262728293031
  1. using NUnit.Framework.Interfaces;
  2. namespace UnityEngine.TestRunner
  3. {
  4. /// <summary>
  5. /// 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"/>.
  6. /// </summary>
  7. public interface ITestRunCallback
  8. {
  9. /// <summary>
  10. /// A callback invoked when a test run is started.
  11. /// </summary>
  12. /// <param name="testsToRun">The full loaded test tree.</param>
  13. void RunStarted(ITest testsToRun);
  14. /// <summary>
  15. /// A callback invoked when a test run is finished.
  16. /// </summary>
  17. /// <param name="testResults">The result of the test run.</param>
  18. void RunFinished(ITestResult testResults);
  19. /// <summary>
  20. /// A callback invoked when each individual node of the test tree has started executing.
  21. /// </summary>
  22. /// <param name="test">The test node currently executed.</param>
  23. void TestStarted(ITest test);
  24. /// <summary>
  25. /// A callback invoked when each individual node of the test tree has finished executing.
  26. /// </summary>
  27. /// <param name="result">The result of the test tree node after it had been executed.</param>
  28. void TestFinished(ITestResult result);
  29. }
  30. }