2 instantiations of TestResult
Microsoft.TestPlatform.CommunicationUtilities (2)
Serialization\TestResultConverter.cs (1)
28var testResult = new TestResult(testCase);
Serialization\TestResultConverterV2.cs (1)
31var testResult = new TestResult(testCase);
89 references to TestResult
Microsoft.TestPlatform.CommunicationUtilities (10)
Serialization\TestObjectBaseConverter.cs (1)
27&& typeToConvert != typeof(TestResult);
Serialization\TestResultConverter.cs (4)
18internal class TestResultConverter : JsonConverter<TestResult> 21public override TestResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 28var testResult = new TestResult(testCase); 113public override void Write(Utf8JsonWriter writer, TestResult value, JsonSerializerOptions options)
Serialization\TestResultConverterV2.cs (4)
20internal class TestResultConverterV2 : JsonConverter<TestResult> 23public override TestResult? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 31var testResult = new TestResult(testCase); 105public override void Write(Utf8JsonWriter writer, TestResult value, JsonSerializerOptions options)
Serialization\TestRunChangedEventArgsConverter.cs (1)
34var newTestResults = DeserializeProperty<IEnumerable<TestResult>>(root, "NewTestResults", options);
Microsoft.TestPlatform.CrossPlatEngine (32)
Adapter\TestExecutionRecorder.cs (1)
94public void RecordResult(TestResult testResult)
Client\TestLoggerManager.cs (1)
218foreach (TestResult result in e.NewTestResults!)
DataCollection\InProcDataCollectionExtensionManager.cs (1)
293private void SetInProcDataCollectionDataInTestResult(TestResult testResult)
EventHandlers\PathConverter.cs (3)
136private IEnumerable<TestResult> UpdateTestResults(IEnumerable<TestResult> testResults, PathConversionDirection updateDirection) 139foreach (var tr in testResults)
EventHandlers\TestCaseEventsHandler.cs (1)
50public void SendTestResult(TestResult result)
Execution\BaseRunTests.cs (10)
598var lastChunkTestResults = TestRunCache?.GetLastChunk() ?? new List<TestResult>(); 650private void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<TestCase>? inProgressTestCases) 689ICollection<TestResult> testResults, 691out ICollection<TestResult> updatedTestResults, 700private ICollection<TestResult> UpdateTestResults(ICollection<TestResult> testResults, string? package) 702ICollection<TestResult> updatedTestResults = new List<TestResult>(); 704foreach (var testResult in testResults) 706var updatedTestResult = _dataSerializer.Clone(testResult);
Execution\MSTestV1TelemetryHelper.cs (3)
27internal static void AddTelemetry(TestResult testResult, IDictionary<string, int> adapterTelemetry) 40s_testTypeProperty ??= TestProperty.Register("TestType", "TestType", typeof(Guid), typeof(TestResult)); 42s_extensionIdProperty ??= TestProperty.Register("ExtensionId", "ExtensionId", typeof(string), typeof(TestResult));
Execution\TestRunCache.cs (9)
68private ICollection<TestResult> _testResults; 97_testResults = new Collection<TestResult>(); 107internal delegate void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<TestCase> inProgressTests); 112public ICollection<TestResult> TestResults 200public void OnNewTestResult(TestResult testResult) 269public ICollection<TestResult> GetLastChunk() 275_testResults = new Collection<TestResult>(); 340_testResults = new Collection<TestResult>(); 365private void RemoveInProgress(TestResult result)
Interfaces\ITestRunCache.cs (3)
17ICollection<TestResult> TestResults { get; } 28void OnNewTestResult(TestResult testResult); 32ICollection<TestResult> GetLastChunk();
Microsoft.VisualStudio.TestPlatform.Common (3)
ExtensionDecorators\SerialTestRunDecorator.cs (1)
130public void RecordResult(TestResult testResult)
ExtensionDecorators\SerialTestRunDecoratorFrameworkHandle.cs (1)
40public void RecordResult(TestResult testResult)
Interfaces\Engine\ITestCaseEventsHandler.cs (1)
30void SendTestResult(TestResult result);
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (5)
Constants.cs (3)
62public static readonly TestProperty ExecutionIdProperty = TestProperty.Register("ExecutionId", ExecutionIdPropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(TestResult)); 64public static readonly TestProperty ParentExecIdProperty = TestProperty.Register("ParentExecId", ParentExecutionIdPropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(TestResult)); 66public static readonly TestProperty TestTypeProperty = TestProperty.Register("TestType", TestTypePropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(TestResult));
HtmlLogger.cs (2)
384private static Guid GetParentExecutionId(TestPlatform.ObjectModel.TestResult testResult) 398private static Guid GetExecutionId(TestPlatform.ObjectModel.TestResult testResult)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (9)
TrxLogger.cs (3)
448private void HandleSkippedTest(ObjectModel.TestResult rsTestResult) 623private ITestElement GetOrCreateTestElement(Guid executionId, Guid parentExecutionId, TestType testType, ITestElement? parentTestElement, ObjectModel.TestResult rockSteadyTestResult) 682ITestElement testElement, ITestElement? parentTestElement, ITestResult? parentTestResult, ObjectModel.TestResult rocksteadyTestResult)
Utility\Converter.cs (6)
106VisualStudio.TestPlatform.ObjectModel.TestResult rockSteadyTestResult) 233private static void UpdateResultMessages(TrxObjectModel.TestResult unitTestResult, VisualStudio.TestPlatform.ObjectModel.TestResult testResult) 317public Guid GetParentExecutionId(VisualStudio.TestPlatform.ObjectModel.TestResult testResult) 332public static Guid GetExecutionId(VisualStudio.TestPlatform.ObjectModel.TestResult testResult) 350public static TestType GetTestType(VisualStudio.TestPlatform.ObjectModel.TestResult testResult) 372private void UpdateTestResultAttachments(VisualStudio.TestPlatform.ObjectModel.TestResult rockSteadyTestResult, TrxObjectModel.TestResult testResult, TestRun testRun, string trxFileDirectory, bool addAttachments)
Microsoft.VisualStudio.TestPlatform.ObjectModel (18)
Adapter\Interfaces\ITestExecutionRecorder.cs (1)
21void RecordResult(TestResult testResult);
Client\Events\TestRunChangedEventArgs.cs (2)
22public TestRunChangedEventArgs(ITestRunStatistics? stats, IEnumerable<TestResult>? newTestResults, IEnumerable<TestCase>? activeTests) 33public IEnumerable<TestResult>? NewTestResults { get; private set; }
DataCollector\Events\TestCaseEvents.cs (4)
351public TestResultEventArgs(TestResult testResult) 368TestResult testResult) 404TestResult testResult) 415public TestResult TestResult
Logging\Events\TestResultEventArgs.cs (2)
19public TestResultEventArgs(TestResult result) 27public TestResult Result { get; private set; }
TestResult.cs (9)
23/// Initializes a new instance of the <see cref="TestResult"/> class. 289public static readonly TestProperty DisplayName = TestProperty.Register("TestResult.DisplayName", "TestResult Display Name", typeof(string), TestPropertyAttributes.Hidden, typeof(TestResult)); 290public static readonly TestProperty ComputerName = TestProperty.Register("TestResult.ComputerName", "Computer Name", typeof(string), TestPropertyAttributes.None, typeof(TestResult)); 291public static readonly TestProperty Outcome = TestProperty.Register("TestResult.Outcome", "Outcome", string.Empty, string.Empty, typeof(TestOutcome), ValidateOutcome, TestPropertyAttributes.None, typeof(TestResult)); 292public static readonly TestProperty Duration = TestProperty.Register("TestResult.Duration", "Duration", typeof(TimeSpan), typeof(TestResult)); 293public static readonly TestProperty StartTime = TestProperty.Register("TestResult.StartTime", "Start Time", typeof(DateTimeOffset), typeof(TestResult)); 294public static readonly TestProperty EndTime = TestProperty.Register("TestResult.EndTime", "End Time", typeof(DateTimeOffset), typeof(TestResult)); 295public static readonly TestProperty ErrorMessage = TestProperty.Register("TestResult.ErrorMessage", "Error Message", typeof(string), typeof(TestResult)); 296public static readonly TestProperty ErrorStackTrace = TestProperty.Register("TestResult.ErrorStackTrace", "Error Stack Trace", typeof(string), typeof(TestResult));
vstest.console (6)
Internal\ConsoleLogger.cs (4)
293private static void DisplayFullInformation(TestResult result) 380private static Guid GetParentExecutionId(TestResult testResult) 394private static Guid GetExecutionId(TestResult testResult) 906public MinimalTestResult(TestResult testResult)
Internal\MSBuildLogger.cs (2)
171var result = e.Result; 278private static void AppendOutputs(TestResult result, StringBuilder stringBuilder)
vstest.console.arm64 (6)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (4)
293private static void DisplayFullInformation(TestResult result) 380private static Guid GetParentExecutionId(TestResult testResult) 394private static Guid GetExecutionId(TestResult testResult) 906public MinimalTestResult(TestResult testResult)
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (2)
171var result = e.Result; 278private static void AppendOutputs(TestResult result, StringBuilder stringBuilder)