-
Notifications
You must be signed in to change notification settings - Fork 323
/
IRunContext.cs
51 lines (43 loc) · 1.87 KB
/
IRunContext.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.
namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter
{
using System;
using System.Collections.Generic;
/// <summary>
/// It provides user specified runSettings and framework provided context of the run.
/// </summary>
public interface IRunContext : IDiscoveryContext
{
/// <summary>
/// Whether the execution process should be kept alive after the run is finished or not.
/// </summary>
bool KeepAlive { get; }
/// <summary>
/// Whether the execution is happening in InProc or outOfProc
/// </summary>
bool InIsolation { get; }
/// <summary>
/// Whether the data collection is enabled or not
/// </summary>
bool IsDataCollectionEnabled { get; }
/// <summary>
/// Whether the test is being debugged or not.
/// </summary>
bool IsBeingDebugged { get; }
/// <summary>
/// Test case filter for user specified criteria which has been validated for 'supportedProperties'.
/// It is used only with sources. With specific test cases it will always be null.
/// If there is a parsing error or filter expression has unsupported properties, TestPlatformFormatException() is thrown.
/// </summary>
ITestCaseFilterExpression GetTestCaseFilter(IEnumerable<String> supportedProperties, Func<string, TestProperty> propertyProvider);
/// <summary>
/// Directory which should be used for storing result files/deployment files etc.
/// </summary>
string TestRunDirectory { get; }
/// <summary>
/// Solution Directory.
/// </summary>
string SolutionDirectory { get; }
}
}