diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs index 9cd3c6b5b9..79e09b98dd 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs @@ -39,12 +39,12 @@ public interface IVsTestConsoleWrapper : IVsTestConsoleWrapperAsync /// Settings XML for test discovery /// Options to be passed into the platform. /// EventHandler to receive discovery events - void DiscoverTests(IEnumerable sources, string discoverySettings, TestPlatformOptions options, ITestDiscoveryEventsHandler2 discoveryEventsHandler); + void DiscoverTests(IEnumerable sources, string discoverySettings, TestPlatformOptions options, ITestDiscoveryEventsHandler2 discoveryEventsHandler); /// /// Cancels the last discovery request. /// - void CancelDiscovery(); + new void CancelDiscovery(); /// /// Starts a test run given a list of sources. @@ -121,16 +121,16 @@ public interface IVsTestConsoleWrapper : IVsTestConsoleWrapperAsync /// /// Cancel the last test run. /// - void CancelTestRun(); + new void CancelTestRun(); /// /// Abort the last test run. /// - void AbortTestRun(); + new void AbortTestRun(); /// /// Ends the test session and stops processing requests. /// - void EndSession(); + new void EndSession(); } } diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs index d9f67417cf..14b32ab427 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs @@ -37,6 +37,11 @@ public interface IVsTestConsoleWrapperAsync /// Task DiscoverTestsAsync(IEnumerable sources, string discoverySettings, TestPlatformOptions options, ITestDiscoveryEventsHandler2 discoveryEventsHandler); + /// + /// See . + /// + void CancelDiscovery(); + /// /// Asynchronous equivalent of . /// @@ -77,6 +82,16 @@ public interface IVsTestConsoleWrapperAsync /// Task RunTestsWithCustomTestHostAsync(IEnumerable testCases, string runSettings, TestPlatformOptions options, ITestRunEventsHandler testRunEventsHandler, ITestHostLauncher customTestHostLauncher); + /// + /// See . + /// + void CancelTestRun(); + + /// + /// See . + /// + void AbortTestRun(); + /// /// Provides back all attachments to TestPlatform for additional processing (for example merging) /// @@ -86,5 +101,10 @@ public interface IVsTestConsoleWrapperAsync /// EventHandler to receive session complete event /// Cancellation token Task FinalizeMultiTestRunAsync(IEnumerable attachments, bool multiTestRunCompleted, bool collectMetrics, IMultiTestRunFinalizationEventsHandler eventsHandler, CancellationToken cancellationToken); + + /// + /// See . + /// + void EndSession(); } }