Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark early testhost startup APIs as internal for TP 16.10 (#2768) #2864

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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