-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathITestFramework.cs
28 lines (24 loc) · 1.15 KB
/
ITestFramework.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Testing.Platform.Extensions.TestFramework;
/// <summary>
/// A specialized extension that represents a test framework.
/// </summary>
public interface ITestFramework : IExtension
{
/// <summary>
/// Ask to the test framework to create a test session.
/// </summary>
/// <param name="context">The test session creation context.</param>
Task<CreateTestSessionResult> CreateTestSessionAsync(CreateTestSessionContext context);
/// <summary>
/// Ask to the test framework to execute a test execution request.
/// </summary>
/// <param name="context">The test execution request context.</param>
Task ExecuteRequestAsync(ExecuteRequestContext context);
/// <summary>
/// Ask to the test framework to destroy the test session and release all the resources.
/// </summary>
/// <param name="context">The test session destruction context.</param>
Task<CloseTestSessionResult> CloseTestSessionAsync(CloseTestSessionContext context);
}