PageRenderTime 57ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/src/NUnit/util/Interfaces/ITestEvents.cs

#
C# | 67 lines | 31 code | 9 blank | 27 comment | 0 complexity | decb612b9e75625bcf385c262c890371 MD5 | raw file
Possible License(s): GPL-2.0
  1. // ****************************************************************
  2. // This is free software licensed under the NUnit license. You
  3. // may obtain a copy of the license as well as information regarding
  4. // copyright ownership at http://nunit.org.
  5. // ****************************************************************
  6. using System;
  7. using NUnit.Core;
  8. namespace NUnit.Util
  9. {
  10. /// <summary>
  11. /// ITestEvents interface defines events related to loading
  12. /// and unloading of test projects and loading, unloading and
  13. /// running tests.
  14. /// </summary>
  15. public interface ITestEvents
  16. {
  17. // Events related to the loading and unloading
  18. // of projects - including wrapper projects
  19. // created in order to load assemblies. This
  20. // occurs separately from the loading of tests
  21. // for the assemblies in the project.
  22. event TestEventHandler ProjectLoading;
  23. event TestEventHandler ProjectLoaded;
  24. event TestEventHandler ProjectLoadFailed;
  25. event TestEventHandler ProjectUnloading;
  26. event TestEventHandler ProjectUnloaded;
  27. event TestEventHandler ProjectUnloadFailed;
  28. // Events related to loading and unloading tests.
  29. event TestEventHandler TestLoading;
  30. event TestEventHandler TestLoaded;
  31. event TestEventHandler TestLoadFailed;
  32. event TestEventHandler TestReloading;
  33. event TestEventHandler TestReloaded;
  34. event TestEventHandler TestReloadFailed;
  35. event TestEventHandler TestUnloading;
  36. event TestEventHandler TestUnloaded;
  37. event TestEventHandler TestUnloadFailed;
  38. // Events related to a running a set of tests
  39. event TestEventHandler RunStarting;
  40. event TestEventHandler RunFinished;
  41. // Events that arise while a test is running
  42. // These are translated from calls to the runner on the
  43. // EventListener interface.
  44. event TestEventHandler SuiteStarting;
  45. event TestEventHandler SuiteFinished;
  46. event TestEventHandler TestStarting;
  47. event TestEventHandler TestFinished;
  48. /// <summary>
  49. /// An unhandled exception was thrown during a test run,
  50. /// and it cannot be associated with a particular test failure.
  51. /// </summary>
  52. event TestEventHandler TestException;
  53. /// <summary>
  54. /// Console Out/Error
  55. /// </summary>
  56. event TestEventHandler TestOutput;
  57. }
  58. }