| File: ObjectModel\HtmlTestResult.cs | Web Access |
| Project: src\vstest\src\Microsoft.TestPlatform.Extensions.HtmlLogger\Microsoft.TestPlatform.Extensions.HtmlLogger.csproj (Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger) |
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Runtime.Serialization; using Microsoft.VisualStudio.TestPlatform.ObjectModel; namespace Microsoft.VisualStudio.TestPlatform.Extensions.HtmlLogger.ObjectModel; /// <summary> /// Test results stores the relevant information to show on html file /// </summary> [DataContract] public class TestResult { /// <summary> /// Fully qualified name of the Test Result. /// </summary> [DataMember] public string? FullyQualifiedName { get; set; } /// <summary> /// Unique identifier for test result /// </summary> [DataMember] public Guid TestResultId { get; set; } /// <summary> /// Display Name for the particular Test Result /// </summary> [DataMember] public string? DisplayName { get; set; } /// <summary> /// The error stack trace of the Test Result. /// </summary> [DataMember] public string? ErrorStackTrace { get; set; } /// <summary> /// Error message of the Test Result. /// </summary> [DataMember] public string? ErrorMessage { get; set; } /// <summary> /// Enum that determines the outcome of the test case /// </summary> [DataMember] public TestOutcome ResultOutcome { get; set; } /// <summary> /// Total timespan of the TestResult /// </summary> [DataMember] public string? Duration { get; set; } /// <summary> /// The list of TestResults that are children to the current Test Result. /// </summary> [DataMember] public List<TestResult>? InnerTestResults { get; set; } }