-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathNUnitFrameworkApi.cs
More file actions
65 lines (56 loc) · 2.64 KB
/
Copy pathNUnitFrameworkApi.cs
File metadata and controls
65 lines (56 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt
using System;
using System.Collections.Generic;
namespace NUnit.Engine.Drivers
{
/// <summary>
/// Driver API for the NUnit Framework. Provides a common interface to al
/// versions of the framework, in spite of differences in their own API.
/// </summary>
public interface NUnitFrameworkApi
{
/// <summary>
/// Loads the tests in an assembly.
/// </summary>
/// <returns>An Xml string representing the loaded test</returns>
string Load(string testAssemblyPath, IDictionary<string, object> settings);
/// <summary>
/// Count the test cases that would be executed.
/// </summary>
/// <param name="filter">An XML string representing the TestFilter to use in counting the tests</param>
/// <returns>The number of test cases counted</returns>
int CountTestCases(string filter);
/// <summary>
/// Executes the tests in an assembly synchronously.
/// </summary>
/// <param name="listener">An ITestEventHandler that receives progress notices</param>
/// <param name="filter">A XML string representing the filter that controls which tests are executed</param>
/// <returns>An Xml string representing the result</returns>
string Run(ITestEventListener? listener, string filter);
/// <summary>
/// Executes the tests in an assembly asynchronously.
/// </summary>
/// <param name="callback">A callback that receives XML progress notices</param>
/// <param name="filter">A filter that controls which tests are executed</param>
void RunAsync(Action<string>? callback, string filter);
/// <summary>
/// Returns information about the tests in an assembly.
/// </summary>
/// <param name="filter">An XML string representing the filter that controls which tests are included</param>
/// <returns>An Xml string representing the tests</returns>
string Explore(string filter);
/// <summary>
/// Cancel the ongoing test run. If no test is running, the call is ignored.
/// </summary>
void RequestStop();
/// <summary>
/// Force the current test run to stop, killing threads or processes if necessary.
/// </summary>
/// <exception cref="NotImplementedException" />
void ForcedStop();
/// <summary>
/// Gets a flag indicating whether ForcedStop is supported for the framework version in use.
/// </summary>
bool ForcedStopSupported { get; }
}
}