forked from microsoft/vstest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Constants.cs
112 lines (89 loc) · 4.34 KB
/
Constants.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// 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.TestPlatform.Extensions.TrxLogger.Utility
{
using System;
using Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel;
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
internal static class Constants
{
/// <summary>
/// Uri used to uniquely identify the TRX logger.
/// </summary>
public const string ExtensionUri = "logger://Microsoft/TestPlatform/TrxLogger/v1";
/// <summary>
/// Alternate user friendly string to uniquely identify the console logger.
/// </summary>
public const string FriendlyName = "Trx";
/// <summary>
/// Prefix of the data collector
/// </summary>
public const string DataCollectorUriPrefix = "dataCollector://";
/// <summary>
/// Log file parameter key
/// </summary>
public const string LogFileNameKey = "LogFileName";
/// <summary>
/// Log file prefix key
/// </summary>
public const string LogFilePrefixKey = "LogFilePrefix";
/// <summary>
/// Ordered test element name
/// </summary>
public const string OrderedTestElementName = "OrderedTest";
/// <summary>
/// Unit test element name
/// </summary>
public const string UnitTestElementName = "UnitTest";
/// <summary>
/// Property Id storing the ExecutionId.
/// </summary>
public const string ExecutionIdPropertyIdentifier = "ExecutionId";
/// <summary>
/// Property Id storing the ParentExecutionId.
/// </summary>
public const string ParentExecutionIdPropertyIdentifier = "ParentExecId";
/// <summary>
/// Property If storing the TestType.
/// </summary>
public const string TestTypePropertyIdentifier = "TestType";
/// <summary>
/// Parent data driven result type.
/// </summary>
public const string ParentDataDrivenResultType = "DataDrivenTest";
/// <summary>
/// Inner data driven result type.
/// </summary>
public const string InnerDataDrivenResultType = "DataDrivenDataRow";
/// <summary>
/// Property Id storing the TMITestId.
/// </summary>
public const string TmiTestIdPropertyIdentifier = "MSTestDiscoverer.TmiTestId";
/// <summary>
/// Mstest adapter string
/// </summary>
public const string MstestAdapterString = "mstestadapter";
/// <summary>
/// Ordered test type guid
/// </summary>
public static readonly Guid OrderedTestTypeGuid = new Guid("ec4800e8-40e5-4ab3-8510-b8bf29b1904d");
/// <summary>
/// Ordered test type
/// </summary>
public static readonly TestType OrderedTestType = new TestType(OrderedTestTypeGuid);
/// <summary>
/// Unit test type guid
/// </summary>
public static readonly Guid UnitTestTypeGuid = new Guid("13CDC9D9-DDB5-4fa4-A97D-D965CCFC6D4B");
/// <summary>
/// Unit test type
/// </summary>
public static readonly TestType UnitTestType = new TestType(UnitTestTypeGuid);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
public static readonly TestProperty ExecutionIdProperty = TestProperty.Register("ExecutionId", ExecutionIdPropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(ObjectModel.TestResult));
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
public static readonly TestProperty ParentExecIdProperty = TestProperty.Register("ParentExecId", ParentExecutionIdPropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(ObjectModel.TestResult));
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
public static readonly TestProperty TestTypeProperty = TestProperty.Register("TestType", TestTypePropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(ObjectModel.TestResult));
}
}