From abafc4f3f703ee792a20f46fd5d94e3eaa221a06 Mon Sep 17 00:00:00 2001 From: Codrin Poienaru Date: Mon, 22 Feb 2021 15:28:10 +0100 Subject: [PATCH 1/2] Marked test session APIs as internal --- .../ClientProtocol/IProxyTestSessionManager.cs | 4 ++++ .../Engine/ClientProtocol/ITestEngine.cs | 1 + .../TestSession/ProxyTestSessionManager.cs | 4 ++++ .../TestSession/TestSessionPool.cs | 7 +++++++ .../Client/Interfaces/ITestPlatform.cs | 1 + .../Client/TestSessionInfo.cs | 1 + .../Interfaces/ITestSession.cs | 15 +++++++++++++++ .../Interfaces/ITestSessionAsync.cs | 15 +++++++++++++++ .../Interfaces/IVsTestConsoleWrapper.cs | 9 +++++++++ .../Interfaces/IVsTestConsoleWrapperAsync.cs | 9 +++++++++ .../TestSession.cs | 2 ++ 11 files changed, 68 insertions(+) diff --git a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IProxyTestSessionManager.cs b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IProxyTestSessionManager.cs index 415974639d..97eeb8ad89 100644 --- a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IProxyTestSessionManager.cs +++ b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IProxyTestSessionManager.cs @@ -6,12 +6,14 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Orchestrates test session related functionality for the engine communicating with the /// client. /// public interface IProxyTestSessionManager { /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Initialize the proxy. /// /// @@ -19,6 +21,7 @@ public interface IProxyTestSessionManager void Initialize(bool skipDefaultAdapters); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts the test session based on the test session criteria. /// /// @@ -31,6 +34,7 @@ void StartSession( ITestSessionEventsHandler eventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Stops the test session. /// void StopSession(); diff --git a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/ITestEngine.cs b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/ITestEngine.cs index 03f2e222fb..c8827fada0 100644 --- a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/ITestEngine.cs +++ b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/ITestEngine.cs @@ -46,6 +46,7 @@ IProxyExecutionManager GetExecutionManager( TestRunCriteria testRunCriteria); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Fetches the TestSessionManager for this engine. This manager would provide all /// functionality required for test session management. /// diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/ProxyTestSessionManager.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/ProxyTestSessionManager.cs index 1d072944fc..0596ce7f51 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/ProxyTestSessionManager.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/ProxyTestSessionManager.cs @@ -15,6 +15,7 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine using CrossPlatResources = Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Resources.Resources; /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Orchestrates test session operations for the engine communicating with the client. /// public class ProxyTestSessionManager : IProxyTestSessionManager @@ -27,6 +28,7 @@ public class ProxyTestSessionManager : IProxyTestSessionManager private IDictionary proxyMap; /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Initializes a new instance of the class. /// /// @@ -100,6 +102,7 @@ public void StopSession() } /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Dequeues a proxy to be used either by discovery or execution. /// /// @@ -133,6 +136,7 @@ public ProxyOperationManager DequeueProxy() } /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Enqueues a proxy back once discovery or executions is done with it. /// /// diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs index 5110552b50..cbd5d11736 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs @@ -11,6 +11,7 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Represents the test session pool. /// public class TestSessionPool @@ -22,6 +23,7 @@ public class TestSessionPool private Dictionary sessionPool; /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Initializes a new instance of the class. /// private TestSessionPool() @@ -30,6 +32,7 @@ private TestSessionPool() } /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Gets the test session pool instance. /// /// @@ -54,6 +57,7 @@ public static TestSessionPool Instance } /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Adds a session to the pool. /// /// @@ -80,6 +84,7 @@ public bool AddSession( } /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Kills and removes a session from the pool. /// /// @@ -111,6 +116,7 @@ public bool KillSession(TestSessionInfo testSessionInfo) } /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Gets a reference to the proxy object from the session pool. /// /// @@ -134,6 +140,7 @@ public ProxyOperationManager TakeProxy(TestSessionInfo testSessionInfo) } /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Returns the proxy object to the session pool. /// /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestPlatform.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestPlatform.cs index a842484b04..a1c477da3b 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestPlatform.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestPlatform.cs @@ -60,6 +60,7 @@ ITestRunRequest CreateTestRunRequest( TestPlatformOptions options); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test session. /// /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/TestSessionInfo.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/TestSessionInfo.cs index 21ce34307b..63cc67cab9 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/TestSessionInfo.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/TestSessionInfo.cs @@ -7,6 +7,7 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client using System.Runtime.Serialization; /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Defines the test session info object to be passed around between vstest.console and /// vstest.console wrapper in order to indentify the current session. /// diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSession.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSession.cs index 206c3aa009..067de79a82 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSession.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSession.cs @@ -10,12 +10,14 @@ namespace Microsoft.VisualStudio.TestPlatform.VsTestConsole.TranslationLayer.Int using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces; /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Defines a test session that can be used to make calls to the vstest.console /// process. /// public interface ITestSession : ITestSessionAsync { /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts test discovery. /// /// @@ -28,6 +30,7 @@ void DiscoverTests( ITestDiscoveryEventsHandler discoveryEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts test discovery. /// /// @@ -42,11 +45,13 @@ void DiscoverTests( ITestDiscoveryEventsHandler2 discoveryEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Cancels the last discovery request. /// new void CancelDiscovery(); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -59,6 +64,7 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -73,6 +79,7 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -85,6 +92,7 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -99,6 +107,7 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -113,6 +122,7 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -129,6 +139,7 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -143,6 +154,7 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -159,6 +171,7 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Stops the test session. /// /// @@ -168,11 +181,13 @@ void RunTestsWithCustomTestHost( bool StopTestSession(ITestSessionEventsHandler eventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Cancels the last test run. /// new void CancelTestRun(); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Aborts the last test run. /// new void AbortTestRun(); diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSessionAsync.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSessionAsync.cs index 9c2aff1496..9c2bb92a83 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSessionAsync.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSessionAsync.cs @@ -10,12 +10,14 @@ namespace Microsoft.VisualStudio.TestPlatform.VsTestConsole.TranslationLayer.Int using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces; /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Defines a test session that can be used to make async calls to the vstest.console /// process. /// public interface ITestSessionAsync { /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts test discovery. /// /// @@ -29,6 +31,7 @@ Task DiscoverTestsAsync( ITestDiscoveryEventsHandler discoveryEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts test discovery. /// /// @@ -43,11 +46,13 @@ Task DiscoverTestsAsync( ITestDiscoveryEventsHandler2 discoveryEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Cancels the last discovery request. /// void CancelDiscovery(); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -60,6 +65,7 @@ Task RunTestsAsync( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -74,6 +80,7 @@ Task RunTestsAsync( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -86,6 +93,7 @@ Task RunTestsAsync( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -100,6 +108,7 @@ Task RunTestsAsync( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -114,6 +123,7 @@ Task RunTestsWithCustomTestHostAsync( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -130,6 +140,7 @@ Task RunTestsWithCustomTestHostAsync( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -144,6 +155,7 @@ Task RunTestsWithCustomTestHostAsync( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -160,6 +172,7 @@ Task RunTestsWithCustomTestHostAsync( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Stops the test session. /// /// @@ -170,11 +183,13 @@ Task StopTestSessionAsync( ITestSessionEventsHandler eventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Cancels the last test run. /// void CancelTestRun(); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Aborts the last test run. /// void AbortTestRun(); diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs index d3ea821e1e..a3d2f0ba8d 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs @@ -54,6 +54,7 @@ void DiscoverTests( ITestDiscoveryEventsHandler2 discoveryEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts test discovery. /// /// @@ -101,6 +102,7 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -143,6 +145,7 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -189,6 +192,7 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -237,6 +241,7 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -255,6 +260,7 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a new test session. /// /// @@ -269,6 +275,7 @@ ITestSession StartTestSession( ITestSessionEventsHandler eventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a new test session. /// /// @@ -285,6 +292,7 @@ ITestSession StartTestSession( ITestSessionEventsHandler eventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a new test session. /// /// @@ -303,6 +311,7 @@ ITestSession StartTestSession( ITestHostLauncher testHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Stops the test session. /// /// diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs index 136e6eec84..d26047dd23 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs @@ -56,6 +56,7 @@ Task DiscoverTestsAsync( ITestDiscoveryEventsHandler2 discoveryEventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Asynchronous equivalent of + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Asynchronous equivalent of + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Asynchronous equivalent of StartTestSessionAsync( ITestSessionEventsHandler eventsHandler); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Asynchronous equivalent of StartTestSessionAsync( ITestHostLauncher testHostLauncher); /// + /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Asynchronous equivalent of class. /// /// From b7750e686148b69be412d29bad22a8ca6be5795b Mon Sep 17 00:00:00 2001 From: Codrin Poienaru Date: Tue, 23 Feb 2021 10:54:10 +0100 Subject: [PATCH 2/2] Made APIs truly internal --- .../IProxyTestSessionManager.cs | 4 - .../Engine/ClientProtocol/ITestEngine.cs | 1 - .../TestSession/ProxyTestSessionManager.cs | 4 - .../TestSession/TestSessionPool.cs | 7 - .../Client/Interfaces/ITestPlatform.cs | 1 - .../Client/TestSessionInfo.cs | 1 - .../Interfaces/ITestSession.cs | 17 +- .../Interfaces/ITestSessionAsync.cs | 17 +- .../Interfaces/IVsTestConsoleWrapper.cs | 279 +++++++++--------- .../Interfaces/IVsTestConsoleWrapperAsync.cs | 263 ++++++++--------- .../TestSession.cs | 4 +- .../VsTestConsoleWrapper.cs | 36 +-- 12 files changed, 283 insertions(+), 351 deletions(-) diff --git a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IProxyTestSessionManager.cs b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IProxyTestSessionManager.cs index 97eeb8ad89..415974639d 100644 --- a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IProxyTestSessionManager.cs +++ b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/IProxyTestSessionManager.cs @@ -6,14 +6,12 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Orchestrates test session related functionality for the engine communicating with the /// client. /// public interface IProxyTestSessionManager { /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Initialize the proxy. /// /// @@ -21,7 +19,6 @@ public interface IProxyTestSessionManager void Initialize(bool skipDefaultAdapters); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts the test session based on the test session criteria. /// /// @@ -34,7 +31,6 @@ void StartSession( ITestSessionEventsHandler eventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Stops the test session. /// void StopSession(); diff --git a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/ITestEngine.cs b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/ITestEngine.cs index c8827fada0..03f2e222fb 100644 --- a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/ITestEngine.cs +++ b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ClientProtocol/ITestEngine.cs @@ -46,7 +46,6 @@ IProxyExecutionManager GetExecutionManager( TestRunCriteria testRunCriteria); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Fetches the TestSessionManager for this engine. This manager would provide all /// functionality required for test session management. /// diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/ProxyTestSessionManager.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/ProxyTestSessionManager.cs index 0596ce7f51..1d072944fc 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/ProxyTestSessionManager.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/ProxyTestSessionManager.cs @@ -15,7 +15,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine using CrossPlatResources = Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Resources.Resources; /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Orchestrates test session operations for the engine communicating with the client. /// public class ProxyTestSessionManager : IProxyTestSessionManager @@ -28,7 +27,6 @@ public class ProxyTestSessionManager : IProxyTestSessionManager private IDictionary proxyMap; /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Initializes a new instance of the class. /// /// @@ -102,7 +100,6 @@ public void StopSession() } /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Dequeues a proxy to be used either by discovery or execution. /// /// @@ -136,7 +133,6 @@ public ProxyOperationManager DequeueProxy() } /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Enqueues a proxy back once discovery or executions is done with it. /// /// diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs index cbd5d11736..5110552b50 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs @@ -11,7 +11,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Represents the test session pool. /// public class TestSessionPool @@ -23,7 +22,6 @@ public class TestSessionPool private Dictionary sessionPool; /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Initializes a new instance of the class. /// private TestSessionPool() @@ -32,7 +30,6 @@ private TestSessionPool() } /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Gets the test session pool instance. /// /// @@ -57,7 +54,6 @@ public static TestSessionPool Instance } /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Adds a session to the pool. /// /// @@ -84,7 +80,6 @@ public bool AddSession( } /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Kills and removes a session from the pool. /// /// @@ -116,7 +111,6 @@ public bool KillSession(TestSessionInfo testSessionInfo) } /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Gets a reference to the proxy object from the session pool. /// /// @@ -140,7 +134,6 @@ public ProxyOperationManager TakeProxy(TestSessionInfo testSessionInfo) } /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Returns the proxy object to the session pool. /// /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestPlatform.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestPlatform.cs index a1c477da3b..a842484b04 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestPlatform.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestPlatform.cs @@ -60,7 +60,6 @@ ITestRunRequest CreateTestRunRequest( TestPlatformOptions options); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test session. /// /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/TestSessionInfo.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/TestSessionInfo.cs index 63cc67cab9..21ce34307b 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/TestSessionInfo.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/TestSessionInfo.cs @@ -7,7 +7,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client using System.Runtime.Serialization; /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Defines the test session info object to be passed around between vstest.console and /// vstest.console wrapper in order to indentify the current session. /// diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSession.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSession.cs index 067de79a82..e8e404a061 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSession.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSession.cs @@ -10,14 +10,12 @@ namespace Microsoft.VisualStudio.TestPlatform.VsTestConsole.TranslationLayer.Int using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces; /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Defines a test session that can be used to make calls to the vstest.console /// process. /// - public interface ITestSession : ITestSessionAsync + internal interface ITestSession : ITestSessionAsync { /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts test discovery. /// /// @@ -30,7 +28,6 @@ void DiscoverTests( ITestDiscoveryEventsHandler discoveryEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts test discovery. /// /// @@ -45,13 +42,11 @@ void DiscoverTests( ITestDiscoveryEventsHandler2 discoveryEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Cancels the last discovery request. /// new void CancelDiscovery(); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -64,7 +59,6 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -79,7 +73,6 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -92,7 +85,6 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -107,7 +99,6 @@ void RunTests( ITestRunEventsHandler testRunEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -122,7 +113,6 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -139,7 +129,6 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -154,7 +143,6 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -171,7 +159,6 @@ void RunTestsWithCustomTestHost( ITestHostLauncher customTestHostLauncher); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Stops the test session. /// /// @@ -181,13 +168,11 @@ void RunTestsWithCustomTestHost( bool StopTestSession(ITestSessionEventsHandler eventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Cancels the last test run. /// new void CancelTestRun(); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Aborts the last test run. /// new void AbortTestRun(); diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSessionAsync.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSessionAsync.cs index 9c2bb92a83..c992ccc569 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSessionAsync.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSessionAsync.cs @@ -10,14 +10,12 @@ namespace Microsoft.VisualStudio.TestPlatform.VsTestConsole.TranslationLayer.Int using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces; /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Defines a test session that can be used to make async calls to the vstest.console /// process. /// - public interface ITestSessionAsync + internal interface ITestSessionAsync { /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts test discovery. /// /// @@ -31,7 +29,6 @@ Task DiscoverTestsAsync( ITestDiscoveryEventsHandler discoveryEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts test discovery. /// /// @@ -46,13 +43,11 @@ Task DiscoverTestsAsync( ITestDiscoveryEventsHandler2 discoveryEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Cancels the last discovery request. /// void CancelDiscovery(); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -65,7 +60,6 @@ Task RunTestsAsync( ITestRunEventsHandler testRunEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -80,7 +74,6 @@ Task RunTestsAsync( ITestRunEventsHandler testRunEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -93,7 +86,6 @@ Task RunTestsAsync( ITestRunEventsHandler testRunEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -108,7 +100,6 @@ Task RunTestsAsync( ITestRunEventsHandler testRunEventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -123,7 +114,6 @@ Task RunTestsWithCustomTestHostAsync( ITestHostLauncher customTestHostLauncher); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -140,7 +130,6 @@ Task RunTestsWithCustomTestHostAsync( ITestHostLauncher customTestHostLauncher); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -155,7 +144,6 @@ Task RunTestsWithCustomTestHostAsync( ITestHostLauncher customTestHostLauncher); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Starts a test run. /// /// @@ -172,7 +160,6 @@ Task RunTestsWithCustomTestHostAsync( ITestHostLauncher customTestHostLauncher); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Stops the test session. /// /// @@ -183,13 +170,11 @@ Task StopTestSessionAsync( ITestSessionEventsHandler eventsHandler); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Cancels the last test run. /// void CancelTestRun(); /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Aborts the last test run. /// void AbortTestRun(); diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs index a3d2f0ba8d..fb835235a4 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs @@ -53,22 +53,21 @@ void DiscoverTests( TestPlatformOptions options, ITestDiscoveryEventsHandler2 discoveryEventsHandler); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Starts test discovery. - /// - /// - /// The list of source assemblies for the discovery. - /// The run settings for the discovery. - /// The test platform options. - /// The test session info object. - /// The discovery event handler. - void DiscoverTests( - IEnumerable sources, - string discoverySettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestDiscoveryEventsHandler2 discoveryEventsHandler); + // + // Starts test discovery. + // + // + // The list of source assemblies for the discovery. + // The run settings for the discovery. + // The test platform options. + // The test session info object. + // The discovery event handler. + // void DiscoverTests( + // IEnumerable sources, + // string discoverySettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestDiscoveryEventsHandler2 discoveryEventsHandler); /// /// Cancels the last discovery request. @@ -101,22 +100,21 @@ void RunTests( TestPlatformOptions options, ITestRunEventsHandler testRunEventsHandler); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Starts a test run. - /// - /// - /// The list of source assemblies for the test run. - /// The run settings for the run. - /// The test platform options. - /// The test session info object. - /// The run event handler. - void RunTests( - IEnumerable sources, - string runSettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestRunEventsHandler testRunEventsHandler); + // + // Starts a test run. + // + // + // The list of source assemblies for the test run. + // The run settings for the run. + // The test platform options. + // The test session info object. + // The run event handler. + // void RunTests( + // IEnumerable sources, + // string runSettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestRunEventsHandler testRunEventsHandler); /// /// Starts a test run. @@ -144,22 +142,21 @@ void RunTests( TestPlatformOptions options, ITestRunEventsHandler testRunEventsHandler); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Starts a test run. - /// - /// - /// The list of test cases for the test run. - /// The run settings for the run. - /// The test platform options. - /// The test session info object. - /// The run event handler. - void RunTests( - IEnumerable testCases, - string runSettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestRunEventsHandler testRunEventsHandler); + // + // Starts a test run. + // + // + // The list of test cases for the test run. + // The run settings for the run. + // The test platform options. + // The test session info object. + // The run event handler. + // void RunTests( + // IEnumerable testCases, + // string runSettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestRunEventsHandler testRunEventsHandler); /// /// Starts a test run. @@ -191,24 +188,23 @@ void RunTestsWithCustomTestHost( ITestRunEventsHandler testRunEventsHandler, ITestHostLauncher customTestHostLauncher); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Starts a test run. - /// - /// - /// The list of source assemblies for the test run. - /// The run settings for the run. - /// The test platform options. - /// The test session info object. - /// The run event handler. - /// The custom host launcher. - void RunTestsWithCustomTestHost( - IEnumerable sources, - string runSettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestRunEventsHandler testRunEventsHandler, - ITestHostLauncher customTestHostLauncher); + // + // Starts a test run. + // + // + // The list of source assemblies for the test run. + // The run settings for the run. + // The test platform options. + // The test session info object. + // The run event handler. + // The custom host launcher. + // void RunTestsWithCustomTestHost( + // IEnumerable sources, + // string runSettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestRunEventsHandler testRunEventsHandler, + // ITestHostLauncher customTestHostLauncher); /// /// Starts a test run. @@ -240,88 +236,83 @@ void RunTestsWithCustomTestHost( ITestRunEventsHandler testRunEventsHandler, ITestHostLauncher customTestHostLauncher); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Starts a test run. - /// - /// - /// The list of test cases for the test run. - /// The run settings for the run. - /// The test platform options. - /// The test session info object. - /// The run event handler. - /// The custom host launcher. - void RunTestsWithCustomTestHost( - IEnumerable testCases, - string runSettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestRunEventsHandler testRunEventsHandler, - ITestHostLauncher customTestHostLauncher); + // + // Starts a test run. + // + // + // The list of test cases for the test run. + // The run settings for the run. + // The test platform options. + // The test session info object. + // The run event handler. + // The custom host launcher. + // void RunTestsWithCustomTestHost( + // IEnumerable testCases, + // string runSettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestRunEventsHandler testRunEventsHandler, + // ITestHostLauncher customTestHostLauncher); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Starts a new test session. - /// - /// - /// The list of source assemblies for the test run. - /// The run settings for the run. - /// The session event handler. - /// - /// A test session info object. - ITestSession StartTestSession( - IList sources, - string runSettings, - ITestSessionEventsHandler eventsHandler); + // + // Starts a new test session. + // + // + // The list of source assemblies for the test run. + // The run settings for the run. + // The session event handler. + // + // A test session info object. + // ITestSession StartTestSession( + // IList sources, + // string runSettings, + // ITestSessionEventsHandler eventsHandler); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Starts a new test session. - /// - /// - /// The list of source assemblies for the test run. - /// The run settings for the run. - /// The test platform options. - /// The session event handler. - /// - /// A test session info object. - ITestSession StartTestSession( - IList sources, - string runSettings, - TestPlatformOptions options, - ITestSessionEventsHandler eventsHandler); + // + // Starts a new test session. + // + // + // The list of source assemblies for the test run. + // The run settings for the run. + // The test platform options. + // The session event handler. + // + // A test session info object. + // ITestSession StartTestSession( + // IList sources, + // string runSettings, + // TestPlatformOptions options, + // ITestSessionEventsHandler eventsHandler); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Starts a new test session. - /// - /// - /// The list of source assemblies for the test run. - /// The run settings for the run. - /// The test platform options. - /// The session event handler. - /// The custom host launcher. - /// - /// A test session info object. - ITestSession StartTestSession( - IList sources, - string runSettings, - TestPlatformOptions options, - ITestSessionEventsHandler eventsHandler, - ITestHostLauncher testHostLauncher); + // + // Starts a new test session. + // + // + // The list of source assemblies for the test run. + // The run settings for the run. + // The test platform options. + // The session event handler. + // The custom host launcher. + // + // A test session info object. + // ITestSession StartTestSession( + // IList sources, + // string runSettings, + // TestPlatformOptions options, + // ITestSessionEventsHandler eventsHandler, + // ITestHostLauncher testHostLauncher); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Stops the test session. - /// - /// - /// The test session info object. - /// The session event handler. - /// - /// True if the session was successfuly stopped, false otherwise. - bool StopTestSession( - TestSessionInfo testSessionInfo, - ITestSessionEventsHandler eventsHandler); + // + // Stops the test session. + // + // + // The test session info object. + // The session event handler. + // + // True if the session was successfuly stopped, false otherwise. + // bool StopTestSession( + // TestSessionInfo testSessionInfo, + // ITestSessionEventsHandler eventsHandler); /// /// Cancels the last test run. diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs index d26047dd23..728aa0a951 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs @@ -55,22 +55,21 @@ Task DiscoverTestsAsync( TestPlatformOptions options, ITestDiscoveryEventsHandler2 discoveryEventsHandler); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Asynchronous equivalent of . - /// - Task DiscoverTestsAsync( - IEnumerable sources, - string discoverySettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestDiscoveryEventsHandler2 discoveryEventsHandler); + // + // Asynchronous equivalent of . + // + // Task DiscoverTestsAsync( + // IEnumerable sources, + // string discoverySettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestDiscoveryEventsHandler2 discoveryEventsHandler); /// /// See . @@ -103,22 +102,21 @@ Task RunTestsAsync( TestPlatformOptions options, ITestRunEventsHandler testRunEventsHandler); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Asynchronous equivalent of . - /// - Task RunTestsAsync( - IEnumerable sources, - string runSettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestRunEventsHandler testRunEventsHandler); + // + // Asynchronous equivalent of . + // + // Task RunTestsAsync( + // IEnumerable sources, + // string runSettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestRunEventsHandler testRunEventsHandler); /// /// Asynchronous equivalent of . - /// - Task RunTestsAsync( - IEnumerable testCases, - string runSettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestRunEventsHandler testRunEventsHandler); + // + // Asynchronous equivalent of . + // + // Task RunTestsAsync( + // IEnumerable testCases, + // string runSettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestRunEventsHandler testRunEventsHandler); /// /// Asynchronous equivalent of . - /// - Task RunTestsWithCustomTestHostAsync( - IEnumerable sources, - string runSettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestRunEventsHandler testRunEventsHandler, - ITestHostLauncher customTestHostLauncher); + // + // Asynchronous equivalent of . + // + // Task RunTestsWithCustomTestHostAsync( + // IEnumerable sources, + // string runSettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestRunEventsHandler testRunEventsHandler, + // ITestHostLauncher customTestHostLauncher); /// /// Asynchronous equivalent of . - /// - Task RunTestsWithCustomTestHostAsync( - IEnumerable testCases, - string runSettings, - TestPlatformOptions options, - TestSessionInfo testSessionInfo, - ITestRunEventsHandler testRunEventsHandler, - ITestHostLauncher customTestHostLauncher); + // + // Asynchronous equivalent of . + // + // Task RunTestsWithCustomTestHostAsync( + // IEnumerable testCases, + // string runSettings, + // TestPlatformOptions options, + // TestSessionInfo testSessionInfo, + // ITestRunEventsHandler testRunEventsHandler, + // ITestHostLauncher customTestHostLauncher); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Asynchronous equivalent of . - /// - Task StartTestSessionAsync( - IList sources, - string runSettings, - ITestSessionEventsHandler eventsHandler); + // + // Asynchronous equivalent of . + // + // Task StartTestSessionAsync( + // IList sources, + // string runSettings, + // ITestSessionEventsHandler eventsHandler); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Asynchronous equivalent of . - /// - Task StartTestSessionAsync( - IList sources, - string runSettings, - TestPlatformOptions options, - ITestSessionEventsHandler eventsHandler); + // + // Asynchronous equivalent of . + // + // Task StartTestSessionAsync( + // IList sources, + // string runSettings, + // TestPlatformOptions options, + // ITestSessionEventsHandler eventsHandler); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Asynchronous equivalent of . - /// - Task StartTestSessionAsync( - IList sources, - string runSettings, - TestPlatformOptions options, - ITestSessionEventsHandler eventsHandler, - ITestHostLauncher testHostLauncher); + // + // Asynchronous equivalent of . + // + // Task StartTestSessionAsync( + // IList sources, + // string runSettings, + // TestPlatformOptions options, + // ITestSessionEventsHandler eventsHandler, + // ITestHostLauncher testHostLauncher); - /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. - /// Asynchronous equivalent of . - /// - Task StopTestSessionAsync( - TestSessionInfo testSessionInfo, - ITestSessionEventsHandler eventsHandler); + // + // Asynchronous equivalent of . + // + // Task StopTestSessionAsync( + // TestSessionInfo testSessionInfo, + // ITestSessionEventsHandler eventsHandler); /// /// See . diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/TestSession.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/TestSession.cs index daa68b8a24..8635d6cfe6 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/TestSession.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/TestSession.cs @@ -12,18 +12,16 @@ namespace Microsoft.TestPlatform.VsTestConsole.TranslationLayer using Microsoft.VisualStudio.TestPlatform.VsTestConsole.TranslationLayer.Interfaces; /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Defines a test session object that can be used to make calls to the vstest.console /// process. /// - public class TestSession : ITestSession + internal class TestSession : ITestSession { private TestSessionInfo testSessionInfo; private VsTestConsoleWrapper consoleWrapper; #region Constructors /// - /// THIS API IS INTERNAL AND IT'S SUBJECT TO CHANGE. /// Initializes a new instance of the class. /// /// diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleWrapper.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleWrapper.cs index 78adc5bb0c..09292008ae 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleWrapper.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleWrapper.cs @@ -211,7 +211,7 @@ public void DiscoverTests( } /// - public void DiscoverTests( + internal void DiscoverTests( IEnumerable sources, string discoverySettings, TestPlatformOptions options, @@ -263,7 +263,7 @@ public void RunTests( } /// - public void RunTests( + internal void RunTests( IEnumerable sources, string runSettings, TestPlatformOptions options, @@ -315,7 +315,7 @@ public void RunTests( } /// - public void RunTests( + internal void RunTests( IEnumerable testCases, string runSettings, TestPlatformOptions options, @@ -371,7 +371,7 @@ public void RunTestsWithCustomTestHost( } /// - public void RunTestsWithCustomTestHost( + internal void RunTestsWithCustomTestHost( IEnumerable sources, string runSettings, TestPlatformOptions options, @@ -429,7 +429,7 @@ public void RunTestsWithCustomTestHost( } /// - public void RunTestsWithCustomTestHost( + internal void RunTestsWithCustomTestHost( IEnumerable testCases, string runSettings, TestPlatformOptions options, @@ -455,7 +455,7 @@ public void RunTestsWithCustomTestHost( } /// - public ITestSession StartTestSession( + internal ITestSession StartTestSession( IList sources, string runSettings, ITestSessionEventsHandler eventsHandler) @@ -468,7 +468,7 @@ public ITestSession StartTestSession( } /// - public ITestSession StartTestSession( + internal ITestSession StartTestSession( IList sources, string runSettings, TestPlatformOptions options, @@ -483,7 +483,7 @@ public ITestSession StartTestSession( } /// - public ITestSession StartTestSession( + internal ITestSession StartTestSession( IList sources, string runSettings, TestPlatformOptions options, @@ -504,7 +504,7 @@ public ITestSession StartTestSession( } /// - public bool StopTestSession( + internal bool StopTestSession( TestSessionInfo testSessionInfo, ITestSessionEventsHandler eventsHandler) { @@ -612,7 +612,7 @@ await this.DiscoverTestsAsync( } /// - public async Task DiscoverTestsAsync( + internal async Task DiscoverTestsAsync( IEnumerable sources, string discoverySettings, TestPlatformOptions options, @@ -658,7 +658,7 @@ await this.RunTestsAsync( } /// - public async Task RunTestsAsync( + internal async Task RunTestsAsync( IEnumerable sources, string runSettings, TestPlatformOptions options, @@ -710,7 +710,7 @@ await this.RunTestsAsync( } /// - public async Task RunTestsAsync( + internal async Task RunTestsAsync( IEnumerable testCases, string runSettings, TestPlatformOptions options, @@ -766,7 +766,7 @@ await this.RunTestsWithCustomTestHostAsync( } /// - public async Task RunTestsWithCustomTestHostAsync( + internal async Task RunTestsWithCustomTestHostAsync( IEnumerable sources, string runSettings, TestPlatformOptions options, @@ -824,7 +824,7 @@ await this.RunTestsWithCustomTestHostAsync( } /// - public async Task RunTestsWithCustomTestHostAsync( + internal async Task RunTestsWithCustomTestHostAsync( IEnumerable testCases, string runSettings, TestPlatformOptions options, @@ -850,7 +850,7 @@ await this.requestSender.StartTestRunWithCustomHostAsync( } /// - public async Task StartTestSessionAsync( + internal async Task StartTestSessionAsync( IList sources, string runSettings, ITestSessionEventsHandler eventsHandler) @@ -863,7 +863,7 @@ public async Task StartTestSessionAsync( } /// - public async Task StartTestSessionAsync( + internal async Task StartTestSessionAsync( IList sources, string runSettings, TestPlatformOptions options, @@ -878,7 +878,7 @@ public async Task StartTestSessionAsync( } /// - public async Task StartTestSessionAsync( + internal async Task StartTestSessionAsync( IList sources, string runSettings, TestPlatformOptions options, @@ -899,7 +899,7 @@ await this.requestSender.StartTestSessionAsync( } /// - public async Task StopTestSessionAsync( + internal async Task StopTestSessionAsync( TestSessionInfo testSessionInfo, ITestSessionEventsHandler eventsHandler) {