forked from microsoft/vstest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIExecutionManager.cs
More file actions
60 lines (52 loc) · 3.29 KB
/
Copy pathIExecutionManager.cs
File metadata and controls
60 lines (52 loc) · 3.29 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.ClientProtocol;
namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.TesthostProtocol;
/// <summary>
/// Orchestrates test execution related functionality for the engine communicating with the test host process.
/// </summary>
public interface IExecutionManager
{
/// <summary>
/// Initializes the execution manager.
/// </summary>
/// <param name="pathToAdditionalExtensions"> The path to additional extensions. </param>
/// <param name="testMessageEventsHandler">Handler of test messages.</param>
void Initialize(IEnumerable<string> pathToAdditionalExtensions, ITestMessageEventHandler? testMessageEventsHandler);
/// <summary>
/// Starts the test run with sources.
/// </summary>
/// <param name="adapterSourceMap"> The adapter Source Map. </param>
/// <param name="package"> The packages which actually contain sources. A testhost can at max execute for one package at time
/// Package can be null if test source, and package are same
/// </param>
/// <param name="runSettings"> The run Settings. </param>
/// <param name="testExecutionContext"> The test Execution Context. </param>
/// <param name="testCaseEvents"> EventHandler for handling test cases level events from Engine. </param>
/// <param name="eventHandler"> EventHandler for handling execution events from Engine. </param>
void StartTestRun(Dictionary<string, IEnumerable<string>> adapterSourceMap, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEvents, IInternalTestRunEventsHandler eventHandler);
/// <summary>
/// Starts the test run with tests.
/// </summary>
/// <param name="tests"> The test list. </param>
/// <param name="package"> The packages which actually contain sources. A testhost can at max execute for one package at time
/// Package can be null if test source, and package are same
/// </param>
/// <param name="runSettings"> The run Settings. </param>
/// <param name="testExecutionContext"> The test Execution Context. </param>
/// /// <param name="testCaseEvents"> EventHandler for handling test cases level events from Engine. </param>
/// <param name="eventHandler"> EventHandler for handling execution events from Engine. </param>
void StartTestRun(IEnumerable<TestCase> tests, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEvents, IInternalTestRunEventsHandler eventHandler);
/// <summary>
/// Cancel the test execution.
/// </summary>
/// <param name="testRunEventsHandler"> EventHandler for handling execution events from Engine. </param>
void Cancel(IInternalTestRunEventsHandler testRunEventsHandler);
/// <summary>
/// Aborts the test execution.
/// </summary>
/// <param name="testRunEventsHandler"> EventHandler for handling execution events from Engine. </param>
void Abort(IInternalTestRunEventsHandler testRunEventsHandler);
}