1 implementation of ITestRunStatistics
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Client\TestRunStatistics.cs (1)
13public class TestRunStatistics : ITestRunStatistics
46 references to ITestRunStatistics
Microsoft.TestPlatform.CommunicationUtilities (35)
_generated\112\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (1)
166if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics))
_generated\36\TestPlatformJsonContext.ITestRunStatistics.g.cs (18)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics>? _ITestRunStatistics; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics> ITestRunStatistics 22get => _ITestRunStatistics ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics> Create_ITestRunStatistics(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics> 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics), 60Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics)obj).Stats, 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), 78DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics), 80Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics)obj).ExecutedTests, 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics).GetProperty("ExecutedTests", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 98private void ITestRunStatisticsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics? value) 109global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics)value).Stats, IDictionaryTestOutcomeInt64); 110writer.WriteNumber(PropName_ExecutedTests, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics)value).ExecutedTests);
_generated\47\TestPlatformJsonContext.TestRunChangedEventArgs.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics)args[0], (global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult>)args[1], (global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>)args[2]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics), typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult>), typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>)}, modifiers: null), 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics> 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs).GetProperty("TestRunStatistics", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics>(options, info1); 143ParameterType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics),
_generated\48\TestPlatformJsonContext.TestRunCompleteEventArgs.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics> 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("TestRunStatistics", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics>(options, info0);
Serialization\TestRunChangedEventArgsConverter.cs (2)
33var stats = DeserializeProperty<ITestRunStatistics>(root, "TestRunStatistics", options);
Serialization\TestRunCompleteEventArgsConverter.cs (2)
34var stats = DeserializeProperty<ITestRunStatistics>(root, "TestRunStatistics", options);
Serialization\TestRunStatisticsConverter.cs (3)
21internal class TestRunStatisticsConverter : JsonConverter<ITestRunStatistics> 24public override ITestRunStatistics? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 48public override void Write(Utf8JsonWriter writer, ITestRunStatistics value, JsonSerializerOptions options)
Microsoft.TestPlatform.CrossPlatEngine (5)
Client\Parallel\ParallelRunDataAggregator.cs (5)
26private readonly List<ITestRunStatistics> _testRunStatsList; 42_testRunStatsList = new List<ITestRunStatistics>(); 73public ITestRunStatistics GetAggregatedRunStats() 79foreach (var runStats in _testRunStatsList) 138ITestRunStatistics? testRunStats,
Microsoft.VisualStudio.TestPlatform.Common (1)
Logging\InternalTestLoggerEvents.cs (1)
288internal void CompleteTestRun(ITestRunStatistics? stats, bool isCanceled, bool isAborted, Exception? error, Collection<AttachmentSet>? attachmentSet, Collection<InvokedDataCollector>? invokedDataCollectors, TimeSpan elapsedTime)
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
Client\Events\TestRunChangedEventArgs.cs (2)
22public TestRunChangedEventArgs(ITestRunStatistics? stats, IEnumerable<TestResult>? newTestResults, IEnumerable<TestCase>? activeTests) 39public ITestRunStatistics? TestRunStatistics { get; private set; }
Client\Events\TestRunCompleteEventArgs.cs (3)
37ITestRunStatistics? stats, 64ITestRunStatistics? stats, 87public ITestRunStatistics? TestRunStatistics { get; private set; }