-
Notifications
You must be signed in to change notification settings - Fork 315
/
IProxyExecutionManager.cs
57 lines (48 loc) · 2.4 KB
/
IProxyExecutionManager.cs
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client;
namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine;
/// <summary>
/// Orchestrates test execution related functionality for the engine communicating with the client.
/// </summary>
public interface IProxyExecutionManager
{
/// <summary>
/// Gets whether current Execution Manager is initialized or not
/// </summary>
bool IsInitialized { get; }
/// <summary>
/// Initializes test execution. Create the test host, setup channel and initialize extensions.
/// <param name="skipDefaultAdapters">Skip default adapters flag.</param>
/// </summary>
void Initialize(bool skipDefaultAdapters);
/// <summary>
/// Initializes test execution. Create the test host, setup channel and initialize extensions.
/// </summary>
///
/// <param name="testRunCriteria">The settings/options for the test run.</param>
/// <param name="eventHandler">EventHandler for handling execution events from Engine.</param>
void InitializeTestRun(TestRunCriteria testRunCriteria, IInternalTestRunEventsHandler eventHandler);
/// <summary>
/// Starts the test run.
/// </summary>
/// <param name="testRunCriteria">The settings/options for the test run.</param>
/// <param name="eventHandler">EventHandler for handling execution events from Engine.</param>
/// <returns>The process id of the runner executing tests.</returns>
int StartTestRun(TestRunCriteria testRunCriteria, IInternalTestRunEventsHandler eventHandler);
/// <summary>
/// Cancels the test run. On the test host, this will send a message to adapters.
/// </summary>
// <param name="eventHandler"> EventHandler for handling execution events from Engine. </param>
void Cancel(IInternalTestRunEventsHandler eventHandler);
/// <summary>
/// Aborts the test operation. This will forcefully terminate the test host.
/// </summary>
// <param name="eventHandler"> EventHandler for handling execution events from Engine. </param>
void Abort(IInternalTestRunEventsHandler eventHandler);
/// <summary>
/// Closes the current test operation by sending a end session message.
/// Terminates the test host.
/// </summary>
void Close();
}