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.

ICallbacks.cs 1.2KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. namespace UnityEditor.TestTools.TestRunner.Api
  3. {
  4. /// <summary>
  5. /// Callbacks in the <see cref="TestRunnerApi"/> for the test stages when running tests.
  6. /// </summary>
  7. public interface ICallbacks
  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(ITestAdaptor testsToRun);
  14. /// <summary>
  15. /// A callback invoked when a test run is finished.
  16. /// </summary>
  17. /// <param name="result">The result of the test run.</param>
  18. void RunFinished(ITestResultAdaptor result);
  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(ITestAdaptor 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(ITestResultAdaptor result);
  29. }
  30. }