Skip to content

Commit

Permalink
Mark early testhost startup APIs as internal for TP 16.10 (#2768) (#2864
Browse files Browse the repository at this point in the history
)

* Marked test session APIs as internal
  • Loading branch information
cvpoienaru committed Apr 22, 2021
1 parent 45fcca5 commit d1ef85d
Show file tree
Hide file tree
Showing 6 changed files with 283 additions and 283 deletions.
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.VisualStudio.TestPlatform.VsTestConsole.TranslationLayer.Int
/// Defines a test session that can be used to make calls to the vstest.console
/// process.
/// </summary>
public interface ITestSession : ITestSessionAsync
internal interface ITestSession : ITestSessionAsync
{
/// <summary>
/// Starts test discovery.
Expand Down
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.VisualStudio.TestPlatform.VsTestConsole.TranslationLayer.Int
/// Defines a test session that can be used to make async calls to the vstest.console
/// process.
/// </summary>
public interface ITestSessionAsync
internal interface ITestSessionAsync
{
/// <summary>
/// Starts test discovery.
Expand Down
Expand Up @@ -53,21 +53,21 @@ public interface IVsTestConsoleWrapper : IVsTestConsoleWrapperAsync
TestPlatformOptions options,
ITestDiscoveryEventsHandler2 discoveryEventsHandler);

/// <summary>
/// Starts test discovery.
/// </summary>
///
/// <param name="sources">The list of source assemblies for the discovery.</param>
/// <param name="discoverySettings">The run settings for the discovery.</param>
/// <param name="options">The test platform options.</param>
/// <param name="testSessionInfo">The test session info object.</param>
/// <param name="discoveryEventsHandler">The discovery event handler.</param>
void DiscoverTests(
IEnumerable<string> sources,
string discoverySettings,
TestPlatformOptions options,
TestSessionInfo testSessionInfo,
ITestDiscoveryEventsHandler2 discoveryEventsHandler);
// <summary>
// Starts test discovery.
// </summary>
//
// <param name="sources">The list of source assemblies for the discovery.</param>
// <param name="discoverySettings">The run settings for the discovery.</param>
// <param name="options">The test platform options.</param>
// <param name="testSessionInfo">The test session info object.</param>
// <param name="discoveryEventsHandler">The discovery event handler.</param>
// void DiscoverTests(
// IEnumerable<string> sources,
// string discoverySettings,
// TestPlatformOptions options,
// TestSessionInfo testSessionInfo,
// ITestDiscoveryEventsHandler2 discoveryEventsHandler);

/// <summary>
/// Cancels the last discovery request.
Expand Down Expand Up @@ -100,21 +100,21 @@ public interface IVsTestConsoleWrapper : IVsTestConsoleWrapperAsync
TestPlatformOptions options,
ITestRunEventsHandler testRunEventsHandler);

/// <summary>
/// Starts a test run.
/// </summary>
///
/// <param name="sources">The list of source assemblies for the test run.</param>
/// <param name="runSettings">The run settings for the run.</param>
/// <param name="options">The test platform options.</param>
/// <param name="testSessionInfo">The test session info object.</param>
/// <param name="testRunEventsHandler">The run event handler.</param>
void RunTests(
IEnumerable<string> sources,
string runSettings,
TestPlatformOptions options,
TestSessionInfo testSessionInfo,
ITestRunEventsHandler testRunEventsHandler);
// <summary>
// Starts a test run.
// </summary>
//
// <param name="sources">The list of source assemblies for the test run.</param>
// <param name="runSettings">The run settings for the run.</param>
// <param name="options">The test platform options.</param>
// <param name="testSessionInfo">The test session info object.</param>
// <param name="testRunEventsHandler">The run event handler.</param>
// void RunTests(
// IEnumerable<string> sources,
// string runSettings,
// TestPlatformOptions options,
// TestSessionInfo testSessionInfo,
// ITestRunEventsHandler testRunEventsHandler);

/// <summary>
/// Starts a test run.
Expand Down Expand Up @@ -142,21 +142,21 @@ public interface IVsTestConsoleWrapper : IVsTestConsoleWrapperAsync
TestPlatformOptions options,
ITestRunEventsHandler testRunEventsHandler);

/// <summary>
/// Starts a test run.
/// </summary>
///
/// <param name="testCases">The list of test cases for the test run.</param>
/// <param name="runSettings">The run settings for the run.</param>
/// <param name="options">The test platform options.</param>
/// <param name="testSessionInfo">The test session info object.</param>
/// <param name="testRunEventsHandler">The run event handler.</param>
void RunTests(
IEnumerable<TestCase> testCases,
string runSettings,
TestPlatformOptions options,
TestSessionInfo testSessionInfo,
ITestRunEventsHandler testRunEventsHandler);
// <summary>
// Starts a test run.
// </summary>
//
// <param name="testCases">The list of test cases for the test run.</param>
// <param name="runSettings">The run settings for the run.</param>
// <param name="options">The test platform options.</param>
// <param name="testSessionInfo">The test session info object.</param>
// <param name="testRunEventsHandler">The run event handler.</param>
// void RunTests(
// IEnumerable<TestCase> testCases,
// string runSettings,
// TestPlatformOptions options,
// TestSessionInfo testSessionInfo,
// ITestRunEventsHandler testRunEventsHandler);

/// <summary>
/// Starts a test run.
Expand Down Expand Up @@ -188,23 +188,23 @@ public interface IVsTestConsoleWrapper : IVsTestConsoleWrapperAsync
ITestRunEventsHandler testRunEventsHandler,
ITestHostLauncher customTestHostLauncher);

/// <summary>
/// Starts a test run.
/// </summary>
///
/// <param name="sources">The list of source assemblies for the test run.</param>
/// <param name="runSettings">The run settings for the run.</param>
/// <param name="options">The test platform options.</param>
/// <param name="testSessionInfo">The test session info object.</param>
/// <param name="testRunEventsHandler">The run event handler.</param>
/// <param name="customTestHostLauncher">The custom host launcher.</param>
void RunTestsWithCustomTestHost(
IEnumerable<string> sources,
string runSettings,
TestPlatformOptions options,
TestSessionInfo testSessionInfo,
ITestRunEventsHandler testRunEventsHandler,
ITestHostLauncher customTestHostLauncher);
// <summary>
// Starts a test run.
// </summary>
//
// <param name="sources">The list of source assemblies for the test run.</param>
// <param name="runSettings">The run settings for the run.</param>
// <param name="options">The test platform options.</param>
// <param name="testSessionInfo">The test session info object.</param>
// <param name="testRunEventsHandler">The run event handler.</param>
// <param name="customTestHostLauncher">The custom host launcher.</param>
// void RunTestsWithCustomTestHost(
// IEnumerable<string> sources,
// string runSettings,
// TestPlatformOptions options,
// TestSessionInfo testSessionInfo,
// ITestRunEventsHandler testRunEventsHandler,
// ITestHostLauncher customTestHostLauncher);

/// <summary>
/// Starts a test run.
Expand Down Expand Up @@ -236,83 +236,83 @@ public interface IVsTestConsoleWrapper : IVsTestConsoleWrapperAsync
ITestRunEventsHandler testRunEventsHandler,
ITestHostLauncher customTestHostLauncher);

/// <summary>
/// Starts a test run.
/// </summary>
///
/// <param name="testCases">The list of test cases for the test run.</param>
/// <param name="runSettings">The run settings for the run.</param>
/// <param name="options">The test platform options.</param>
/// <param name="testSessionInfo">The test session info object.</param>
/// <param name="testRunEventsHandler">The run event handler.</param>
/// <param name="customTestHostLauncher">The custom host launcher.</param>
void RunTestsWithCustomTestHost(
IEnumerable<TestCase> testCases,
string runSettings,
TestPlatformOptions options,
TestSessionInfo testSessionInfo,
ITestRunEventsHandler testRunEventsHandler,
ITestHostLauncher customTestHostLauncher);
// <summary>
// Starts a test run.
// </summary>
//
// <param name="testCases">The list of test cases for the test run.</param>
// <param name="runSettings">The run settings for the run.</param>
// <param name="options">The test platform options.</param>
// <param name="testSessionInfo">The test session info object.</param>
// <param name="testRunEventsHandler">The run event handler.</param>
// <param name="customTestHostLauncher">The custom host launcher.</param>
// void RunTestsWithCustomTestHost(
// IEnumerable<TestCase> testCases,
// string runSettings,
// TestPlatformOptions options,
// TestSessionInfo testSessionInfo,
// ITestRunEventsHandler testRunEventsHandler,
// ITestHostLauncher customTestHostLauncher);

/// <summary>
/// Starts a new test session.
/// </summary>
///
/// <param name="sources">The list of source assemblies for the test run.</param>
/// <param name="runSettings">The run settings for the run.</param>
/// <param name="eventsHandler">The session event handler.</param>
///
/// <returns>A test session info object.</returns>
ITestSession StartTestSession(
IList<string> sources,
string runSettings,
ITestSessionEventsHandler eventsHandler);
// <summary>
// Starts a new test session.
// </summary>
//
// <param name="sources">The list of source assemblies for the test run.</param>
// <param name="runSettings">The run settings for the run.</param>
// <param name="eventsHandler">The session event handler.</param>
//
// <returns>A test session info object.</returns>
// ITestSession StartTestSession(
// IList<string> sources,
// string runSettings,
// ITestSessionEventsHandler eventsHandler);

/// <summary>
/// Starts a new test session.
/// </summary>
///
/// <param name="sources">The list of source assemblies for the test run.</param>
/// <param name="runSettings">The run settings for the run.</param>
/// <param name="options">The test platform options.</param>
/// <param name="eventsHandler">The session event handler.</param>
///
/// <returns>A test session info object.</returns>
ITestSession StartTestSession(
IList<string> sources,
string runSettings,
TestPlatformOptions options,
ITestSessionEventsHandler eventsHandler);
// <summary>
// Starts a new test session.
// </summary>
//
// <param name="sources">The list of source assemblies for the test run.</param>
// <param name="runSettings">The run settings for the run.</param>
// <param name="options">The test platform options.</param>
// <param name="eventsHandler">The session event handler.</param>
//
// <returns>A test session info object.</returns>
// ITestSession StartTestSession(
// IList<string> sources,
// string runSettings,
// TestPlatformOptions options,
// ITestSessionEventsHandler eventsHandler);

/// <summary>
/// Starts a new test session.
/// </summary>
///
/// <param name="sources">The list of source assemblies for the test run.</param>
/// <param name="runSettings">The run settings for the run.</param>
/// <param name="options">The test platform options.</param>
/// <param name="eventsHandler">The session event handler.</param>
/// <param name="testHostLauncher">The custom host launcher.</param>
///
/// <returns>A test session info object.</returns>
ITestSession StartTestSession(
IList<string> sources,
string runSettings,
TestPlatformOptions options,
ITestSessionEventsHandler eventsHandler,
ITestHostLauncher testHostLauncher);
// <summary>
// Starts a new test session.
// </summary>
//
// <param name="sources">The list of source assemblies for the test run.</param>
// <param name="runSettings">The run settings for the run.</param>
// <param name="options">The test platform options.</param>
// <param name="eventsHandler">The session event handler.</param>
// <param name="testHostLauncher">The custom host launcher.</param>
//
// <returns>A test session info object.</returns>
// ITestSession StartTestSession(
// IList<string> sources,
// string runSettings,
// TestPlatformOptions options,
// ITestSessionEventsHandler eventsHandler,
// ITestHostLauncher testHostLauncher);

/// <summary>
/// Stops the test session.
/// </summary>
///
/// <param name="testSessionInfo">The test session info object.</param>
/// <param name="eventsHandler">The session event handler.</param>
///
/// <returns>True if the session was successfuly stopped, false otherwise.</returns>
bool StopTestSession(
TestSessionInfo testSessionInfo,
ITestSessionEventsHandler eventsHandler);
// <summary>
// Stops the test session.
// </summary>
//
// <param name="testSessionInfo">The test session info object.</param>
// <param name="eventsHandler">The session event handler.</param>
//
// <returns>True if the session was successfuly stopped, false otherwise.</returns>
// bool StopTestSession(
// TestSessionInfo testSessionInfo,
// ITestSessionEventsHandler eventsHandler);

/// <summary>
/// Cancels the last test run.
Expand Down

0 comments on commit d1ef85d

Please sign in to comment.