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