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