| File: Interfaces\ITestRunCache.cs | Web Access |
| Project: src\vstest\src\Microsoft.TestPlatform.CrossPlatEngine\Microsoft.TestPlatform.CrossPlatEngine.csproj (Microsoft.TestPlatform.CrossPlatEngine) |
// 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 Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution; /// <summary> /// The cache for test execution information. /// </summary> internal interface ITestRunCache : IDisposable { ICollection<TestResult> TestResults { get; } ICollection<TestCase> InProgressTests { get; } long TotalExecutedTests { get; } TestRunStatistics TestRunStatistics { get; } IDictionary<string, int> AdapterTelemetry { get; } void OnTestStarted(TestCase testCase); void OnNewTestResult(TestResult testResult); bool OnTestCompletion(TestCase completedTest); ICollection<TestResult> GetLastChunk(); }