/src/NUnit/util/Interfaces/ITestEvents.cs
C# | 67 lines | 31 code | 9 blank | 27 comment | 0 complexity | decb612b9e75625bcf385c262c890371 MD5 | raw file
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 7using System; 8using NUnit.Core; 9 10namespace NUnit.Util 11{ 12 /// <summary> 13 /// ITestEvents interface defines events related to loading 14 /// and unloading of test projects and loading, unloading and 15 /// running tests. 16 /// </summary> 17 public interface ITestEvents 18 { 19 // Events related to the loading and unloading 20 // of projects - including wrapper projects 21 // created in order to load assemblies. This 22 // occurs separately from the loading of tests 23 // for the assemblies in the project. 24 event TestEventHandler ProjectLoading; 25 event TestEventHandler ProjectLoaded; 26 event TestEventHandler ProjectLoadFailed; 27 event TestEventHandler ProjectUnloading; 28 event TestEventHandler ProjectUnloaded; 29 event TestEventHandler ProjectUnloadFailed; 30 31 // Events related to loading and unloading tests. 32 event TestEventHandler TestLoading; 33 event TestEventHandler TestLoaded; 34 event TestEventHandler TestLoadFailed; 35 36 event TestEventHandler TestReloading; 37 event TestEventHandler TestReloaded; 38 event TestEventHandler TestReloadFailed; 39 40 event TestEventHandler TestUnloading; 41 event TestEventHandler TestUnloaded; 42 event TestEventHandler TestUnloadFailed; 43 44 // Events related to a running a set of tests 45 event TestEventHandler RunStarting; 46 event TestEventHandler RunFinished; 47 48 // Events that arise while a test is running 49 // These are translated from calls to the runner on the 50 // EventListener interface. 51 event TestEventHandler SuiteStarting; 52 event TestEventHandler SuiteFinished; 53 event TestEventHandler TestStarting; 54 event TestEventHandler TestFinished; 55 56 /// <summary> 57 /// An unhandled exception was thrown during a test run, 58 /// and it cannot be associated with a particular test failure. 59 /// </summary> 60 event TestEventHandler TestException; 61 62 /// <summary> 63 /// Console Out/Error 64 /// </summary> 65 event TestEventHandler TestOutput; 66 } 67}