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 authored Apr 22, 2021
1 parent 45fcca5 commit d1ef85d
Show file tree
Hide file tree
Showing 6 changed files with 283 additions and 283 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ void DiscoverTests(
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 @@ void RunTests(
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 @@ void RunTests(
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 @@ void RunTestsWithCustomTestHost(
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 @@ void RunTestsWithCustomTestHost(
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
Loading

0 comments on commit d1ef85d

Please sign in to comment.