151 references to TestOutcome
Microsoft.TestPlatform.CommunicationUtilities (38)
_generated\112\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (2)
262
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
))
338
if (type == typeof(global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>))
_generated\36\TestPlatformJsonContext.ITestRunStatistics.g.cs (3)
53
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>>
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics).GetProperty("Stats", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>), global::System.Array.Empty<global::System.Type>(), null),
71
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>>(options, info0);
_generated\51\TestPlatformJsonContext.TestRunStatistics.g.cs (3)
73
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>>
88
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics).GetProperty("Stats", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>), global::System.Array.Empty<global::System.Type>(), null),
91
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>>(options, info1);
_generated\60\TestPlatformJsonContext.TestOutcome.g.cs (9)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
>? _TestOutcome;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
> TestOutcome
22
get => _TestOutcome ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
> Create_TestOutcome(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
> jsonTypeInfo))
29
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
>(options, global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.GetEnumConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
>(options));
_generated\65\TestPlatformJsonContext.TestResult.g.cs (3)
95
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
>
110
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("Outcome", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
), global::System.Array.Empty<global::System.Type>(), null),
113
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
>(options, info2);
_generated\79\TestPlatformJsonContext.IDictionaryTestOutcomeInt64.g.cs (11)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>>? _IDictionaryTestOutcomeInt64;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>> IDictionaryTestOutcomeInt64
22
get => _IDictionaryTestOutcomeInt64 ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>> Create_IDictionaryTestOutcomeInt64(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>>
31
ObjectCreator = () => new global::System.Collections.Generic.Dictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>(),
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIDictionaryInfo<global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
, long>(options, info);
Serialization\TestResultConverter.cs (2)
90
testResult.Outcome = (
TestOutcome
)Enum.Parse(typeof(
TestOutcome
), propertyData!); break;
Serialization\TestResultConverterV2.cs (1)
59
testResult.Outcome = (
TestOutcome
)outcome.GetInt32();
Serialization\TestRunStatisticsConverter.cs (4)
31
IDictionary<
TestOutcome
, long>? stats = null;
34
stats = new Dictionary<
TestOutcome
, long>();
37
if (Enum.TryParse<
TestOutcome
>(kvp.Name, out
var
outcome))
Microsoft.TestPlatform.CrossPlatEngine (8)
Adapter\TestExecutionRecorder.cs (2)
114
public void RecordEnd(TestCase testCase,
TestOutcome
outcome)
126
private void SendTestCaseEnd(TestCase testCase,
TestOutcome
outcome)
Client\Parallel\ParallelRunDataAggregator.cs (1)
75
var testOutcomeMap = new Dictionary<
TestOutcome
, long>();
EventHandlers\TestCaseEventsHandler.cs (1)
44
public void SendTestCaseEnd(TestCase testCase,
TestOutcome
outcome)
Execution\BaseRunTests.cs (1)
597
var runStats = TestRunCache?.TestRunStatistics ?? new TestRunStatistics(new Dictionary<
TestOutcome
, long>());
Execution\TestRunCache.cs (3)
28
private readonly Dictionary<
TestOutcome
, long> _runStats;
98
_runStats = new Dictionary<
TestOutcome
, long>();
160
var stats = new TestRunStatistics(new Dictionary<
TestOutcome
, long>(_runStats));
Microsoft.VisualStudio.TestPlatform.Common (3)
ExtensionDecorators\SerialTestRunDecorator.cs (1)
124
public void RecordEnd(TestCase testCase,
TestOutcome
outcome)
ExtensionDecorators\SerialTestRunDecoratorFrameworkHandle.cs (1)
34
public void RecordEnd(TestCase testCase,
TestOutcome
outcome)
Interfaces\Engine\ITestCaseEventsHandler.cs (1)
24
void SendTestCaseEnd(TestCase testCase,
TestOutcome
outcome);
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (5)
HtmlLogger.cs (4)
234
case
TestOutcome
.Failed:
237
case
TestOutcome
.Passed:
240
case
TestOutcome
.Skipped:
252
if (e.Result.Outcome ==
TestOutcome
.Failed)
ObjectModel\HtmlTestResult.cs (1)
46
[DataMember] public
TestOutcome
ResultOutcome { get; set; }
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (8)
TrxLogger.cs (2)
303
if (e.Result.Outcome == ObjectModel.
TestOutcome
.Skipped)
498
TPDebug.Assert(rsTestResult.Outcome == ObjectModel.
TestOutcome
.Skipped, "Test Result should be skipped but it is " + rsTestResult.Outcome);
Utility\Converter.cs (6)
145
public static TrxObjectModel.TestOutcome ToOutcome(VisualStudio.TestPlatform.ObjectModel.
TestOutcome
rockSteadyOutcome)
151
case Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
.Failed:
154
case Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
.Passed:
157
case Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
.Skipped:
158
case Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
.None:
159
case Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestOutcome
.NotFound:
Microsoft.VisualStudio.TestPlatform.ObjectModel (27)
Adapter\Interfaces\ITestExecutionRecorder.cs (1)
37
void RecordEnd(TestCase testCase,
TestOutcome
outcome);
Client\Interfaces\ITestRunStatistics.cs (2)
18
long this[
TestOutcome
testOutcome] { get; }
23
IDictionary<
TestOutcome
, long>? Stats { get; }
Client\TestRunStatistics.cs (4)
30
public TestRunStatistics(IDictionary<
TestOutcome
, long>? stats)
41
public TestRunStatistics(long executedTests, IDictionary<
TestOutcome
, long>? stats)
57
public IDictionary<
TestOutcome
, long>? Stats { get; private set; }
64
public long this[
TestOutcome
testOutcome]
DataCollector\Events\TestCaseEvents.cs (5)
227
public TestCaseEndEventArgs(TestCase testElement,
TestOutcome
testOutcome) : this(new DataCollectionContext(new SessionId(Guid.Empty)), testElement, testOutcome)
247
TestOutcome
testOutcome)
279
: this(context, testCaseId, testCaseName, isChildTestCase,
TestOutcome
.Failed)
307
TestOutcome
testOutcome)
318
public
TestOutcome
TestOutcome
DataCollector\InProcDataCollector\TestCaseEndArgs.cs (2)
22
public TestCaseEndArgs(DataCollectionContext dataCollectionContext,
TestOutcome
outcome)
31
public
TestOutcome
TestOutcome { get; private set; }
TestOutcomeHelper.cs (6)
18
public static string GetOutcomeString(
TestOutcome
outcome)
22
TestOutcome
.None => Resources.Resources.TestOutcomeNone,
23
TestOutcome
.Passed => Resources.Resources.TestOutcomePassed,
24
TestOutcome
.Failed => Resources.Resources.TestOutcomeFailed,
25
TestOutcome
.Skipped => Resources.Resources.TestOutcomeSkipped,
26
TestOutcome
.NotFound => Resources.Resources.TestOutcomeNotFound,
TestResult.cs (7)
54
public
TestOutcome
Outcome { get; set; }
128
if (Outcome ==
TestOutcome
.Failed)
213
Outcome = (
TestOutcome
)value!; return;
291
public static readonly TestProperty Outcome = TestProperty.Register("TestResult.Outcome", "Outcome", string.Empty, string.Empty, typeof(
TestOutcome
), ValidateOutcome, TestPropertyAttributes.None, typeof(TestResult));
336
return value is
TestOutcome
testOutcome && testOutcome <=
TestOutcome
.NotFound && testOutcome >=
TestOutcome
.None;
vstest.console (31)
CommandLine\Executor.cs (1)
198
exitCode |= (TestRunResultAggregator.Instance.Outcome ==
TestOutcome
.Passed) ? 0 : 1;
CommandLine\TestRunResultAggregator.cs (8)
24
Outcome =
TestOutcome
.Passed;
37
public
TestOutcome
Outcome { get; private set; }
68
Outcome =
TestOutcome
.Failed;
76
Outcome =
TestOutcome
.Passed;
86
Outcome =
TestOutcome
.Failed;
88
else if (e.TestRunStatistics[
TestOutcome
.Failed] > 0)
90
Outcome =
TestOutcome
.Failed;
101
Outcome =
TestOutcome
.Failed;
Internal\ConsoleLogger.cs (18)
537
case
TestOutcome
.Skipped:
560
case
TestOutcome
.Failed:
580
case
TestOutcome
.Passed:
717
case
TestOutcome
.Passed:
721
case
TestOutcome
.Failed:
725
case
TestOutcome
.Skipped:
736
TestOutcome
sourceOutcome =
TestOutcome
.None;
739
sourceOutcome =
TestOutcome
.Failed;
743
sourceOutcome =
TestOutcome
.Passed;
747
sourceOutcome =
TestOutcome
.Skipped;
752
TestOutcome
.Failed => (CommandLineResources.FailedTestIndicator + "!").PadRight(LongestResultIndicator),
753
TestOutcome
.Passed => (CommandLineResources.PassedTestIndicator + "!").PadRight(LongestResultIndicator),
754
TestOutcome
.Skipped => (CommandLineResources.SkippedTestIndicator + "!").PadRight(LongestResultIndicator),
782
if (sourceOutcome ==
TestOutcome
.Failed)
786
else if (sourceOutcome ==
TestOutcome
.Passed)
790
else if (sourceOutcome ==
TestOutcome
.Skipped)
929
public
TestOutcome
Outcome { get; }
Internal\MSBuildLogger.cs (4)
119
var passed = e.TestRunStatistics?[
TestOutcome
.Passed] ?? 0;
120
var skipped = e.TestRunStatistics?[
TestOutcome
.Skipped] ?? 0;
121
var failed = e.TestRunStatistics?[
TestOutcome
.Failed] ?? 0;
170
case
TestOutcome
.Failed:
vstest.console.arm64 (31)
src\vstest\src\vstest.console\CommandLine\Executor.cs (1)
198
exitCode |= (TestRunResultAggregator.Instance.Outcome ==
TestOutcome
.Passed) ? 0 : 1;
src\vstest\src\vstest.console\CommandLine\TestRunResultAggregator.cs (8)
24
Outcome =
TestOutcome
.Passed;
37
public
TestOutcome
Outcome { get; private set; }
68
Outcome =
TestOutcome
.Failed;
76
Outcome =
TestOutcome
.Passed;
86
Outcome =
TestOutcome
.Failed;
88
else if (e.TestRunStatistics[
TestOutcome
.Failed] > 0)
90
Outcome =
TestOutcome
.Failed;
101
Outcome =
TestOutcome
.Failed;
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (18)
537
case
TestOutcome
.Skipped:
560
case
TestOutcome
.Failed:
580
case
TestOutcome
.Passed:
717
case
TestOutcome
.Passed:
721
case
TestOutcome
.Failed:
725
case
TestOutcome
.Skipped:
736
TestOutcome
sourceOutcome =
TestOutcome
.None;
739
sourceOutcome =
TestOutcome
.Failed;
743
sourceOutcome =
TestOutcome
.Passed;
747
sourceOutcome =
TestOutcome
.Skipped;
752
TestOutcome
.Failed => (CommandLineResources.FailedTestIndicator + "!").PadRight(LongestResultIndicator),
753
TestOutcome
.Passed => (CommandLineResources.PassedTestIndicator + "!").PadRight(LongestResultIndicator),
754
TestOutcome
.Skipped => (CommandLineResources.SkippedTestIndicator + "!").PadRight(LongestResultIndicator),
782
if (sourceOutcome ==
TestOutcome
.Failed)
786
else if (sourceOutcome ==
TestOutcome
.Passed)
790
else if (sourceOutcome ==
TestOutcome
.Skipped)
929
public
TestOutcome
Outcome { get; }
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (4)
119
var passed = e.TestRunStatistics?[
TestOutcome
.Passed] ?? 0;
120
var skipped = e.TestRunStatistics?[
TestOutcome
.Skipped] ?? 0;
121
var failed = e.TestRunStatistics?[
TestOutcome
.Failed] ?? 0;
170
case
TestOutcome
.Failed: