forked from microsoft/vstest
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
IProxyDiscoveryManager.cs
51 lines (43 loc) · 2.09 KB
/
IProxyDiscoveryManager.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
// 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 discovery operations for the engine communicating with the client.
/// </summary>
public interface IProxyDiscoveryManager
{
/// <summary>
/// Initializes test discovery. 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 discovery. Create the test host, setup channel and initialize extensions.
/// </summary>
///
/// <param name="discoveryCriteria">Settings, parameters for the discovery request</param>
/// <param name="eventHandler">EventHandler for handling discovery events from Engine</param>
/// <param name="skipDefaultAdapters">Skip default adapters flag</param>
void InitializeDiscovery(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler2 eventHandler, bool skipDefaultAdapters);
/// <summary>
/// Discovers tests
/// </summary>
/// <param name="discoveryCriteria">Settings, parameters for the discovery request</param>
/// <param name="eventHandler">EventHandler for handling discovery events from Engine</param>
void DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler2 eventHandler);
/// <summary>
/// Aborts the test operation.
/// </summary>
void Abort();
/// <summary>
/// Aborts discovery operation with EventHandler.
/// </summary>
/// <param name="eventHandler">EventHandler for handling discovery events from Engine</param>
void Abort(ITestDiscoveryEventsHandler2 eventHandler);
/// <summary>
/// Closes the current test operation.
/// Send a EndSession message to close the test host and channel gracefully.
/// </summary>
void Close();
}