Brak opisu
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

1234567891011121314151617181920212223242526272829
  1. namespace UnityEditor.TestTools.TestRunner.Api
  2. {
  3. /// <summary>
  4. /// Callbacks in the <see cref="TestRunnerApi"/> for the test stages when running tests.
  5. /// </summary>
  6. public interface ICallbacks
  7. {
  8. /// <summary>
  9. /// A callback invoked when a test run is started.
  10. /// </summary>
  11. /// <param name="testsToRun">The full loaded test tree.</param>
  12. void RunStarted(ITestAdaptor testsToRun);
  13. /// <summary>
  14. /// A callback invoked when a test run is finished.
  15. /// </summary>
  16. /// <param name="result">The result of the test run.</param>
  17. void RunFinished(ITestResultAdaptor result);
  18. /// <summary>
  19. /// A callback invoked when each individual node of the test tree has started executing.
  20. /// </summary>
  21. /// <param name="test">The test node currently executed.</param>
  22. void TestStarted(ITestAdaptor test);
  23. /// <summary>
  24. /// A callback invoked when each individual node of the test tree has finished executing.
  25. /// </summary>
  26. /// <param name="result">The result of the test tree node after it had been executed.</param>
  27. void TestFinished(ITestResultAdaptor result);
  28. }
  29. }