120 references to TestOutcome
Microsoft.TestPlatform.CommunicationUtilities (7)
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)
225case TestOutcome.Failed: 228case TestOutcome.Passed: 231case TestOutcome.Skipped: 243if (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)
274if (e.Result.Outcome == ObjectModel.TestOutcome.Skipped) 450TPDebug.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: