Skip to content

Commit d1ef85d

Browse files
authored
Mark early testhost startup APIs as internal for TP 16.10 (#2768) (#2864)
* Marked test session APIs as internal
1 parent 45fcca5 commit d1ef85d

File tree

6 files changed

+283
-283
lines changed

6 files changed

+283
-283
lines changed

src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSession.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.VisualStudio.TestPlatform.VsTestConsole.TranslationLayer.Int
1313
/// Defines a test session that can be used to make calls to the vstest.console
1414
/// process.
1515
/// </summary>
16-
public interface ITestSession : ITestSessionAsync
16+
internal interface ITestSession : ITestSessionAsync
1717
{
1818
/// <summary>
1919
/// Starts test discovery.

src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/ITestSessionAsync.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.VisualStudio.TestPlatform.VsTestConsole.TranslationLayer.Int
1313
/// Defines a test session that can be used to make async calls to the vstest.console
1414
/// process.
1515
/// </summary>
16-
public interface ITestSessionAsync
16+
internal interface ITestSessionAsync
1717
{
1818
/// <summary>
1919
/// Starts test discovery.

src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs

+135-135
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ void DiscoverTests(
5353
TestPlatformOptions options,
5454
ITestDiscoveryEventsHandler2 discoveryEventsHandler);
5555

56-
/// <summary>
57-
/// Starts test discovery.
58-
/// </summary>
59-
///
60-
/// <param name="sources">The list of source assemblies for the discovery.</param>
61-
/// <param name="discoverySettings">The run settings for the discovery.</param>
62-
/// <param name="options">The test platform options.</param>
63-
/// <param name="testSessionInfo">The test session info object.</param>
64-
/// <param name="discoveryEventsHandler">The discovery event handler.</param>
65-
void DiscoverTests(
66-
IEnumerable<string> sources,
67-
string discoverySettings,
68-
TestPlatformOptions options,
69-
TestSessionInfo testSessionInfo,
70-
ITestDiscoveryEventsHandler2 discoveryEventsHandler);
56+
// <summary>
57+
// Starts test discovery.
58+
// </summary>
59+
//
60+
// <param name="sources">The list of source assemblies for the discovery.</param>
61+
// <param name="discoverySettings">The run settings for the discovery.</param>
62+
// <param name="options">The test platform options.</param>
63+
// <param name="testSessionInfo">The test session info object.</param>
64+
// <param name="discoveryEventsHandler">The discovery event handler.</param>
65+
// void DiscoverTests(
66+
// IEnumerable<string> sources,
67+
// string discoverySettings,
68+
// TestPlatformOptions options,
69+
// TestSessionInfo testSessionInfo,
70+
// ITestDiscoveryEventsHandler2 discoveryEventsHandler);
7171

7272
/// <summary>
7373
/// Cancels the last discovery request.
@@ -100,21 +100,21 @@ void RunTests(
100100
TestPlatformOptions options,
101101
ITestRunEventsHandler testRunEventsHandler);
102102

103-
/// <summary>
104-
/// Starts a test run.
105-
/// </summary>
106-
///
107-
/// <param name="sources">The list of source assemblies for the test run.</param>
108-
/// <param name="runSettings">The run settings for the run.</param>
109-
/// <param name="options">The test platform options.</param>
110-
/// <param name="testSessionInfo">The test session info object.</param>
111-
/// <param name="testRunEventsHandler">The run event handler.</param>
112-
void RunTests(
113-
IEnumerable<string> sources,
114-
string runSettings,
115-
TestPlatformOptions options,
116-
TestSessionInfo testSessionInfo,
117-
ITestRunEventsHandler testRunEventsHandler);
103+
// <summary>
104+
// Starts a test run.
105+
// </summary>
106+
//
107+
// <param name="sources">The list of source assemblies for the test run.</param>
108+
// <param name="runSettings">The run settings for the run.</param>
109+
// <param name="options">The test platform options.</param>
110+
// <param name="testSessionInfo">The test session info object.</param>
111+
// <param name="testRunEventsHandler">The run event handler.</param>
112+
// void RunTests(
113+
// IEnumerable<string> sources,
114+
// string runSettings,
115+
// TestPlatformOptions options,
116+
// TestSessionInfo testSessionInfo,
117+
// ITestRunEventsHandler testRunEventsHandler);
118118

119119
/// <summary>
120120
/// Starts a test run.
@@ -142,21 +142,21 @@ void RunTests(
142142
TestPlatformOptions options,
143143
ITestRunEventsHandler testRunEventsHandler);
144144

145-
/// <summary>
146-
/// Starts a test run.
147-
/// </summary>
148-
///
149-
/// <param name="testCases">The list of test cases for the test run.</param>
150-
/// <param name="runSettings">The run settings for the run.</param>
151-
/// <param name="options">The test platform options.</param>
152-
/// <param name="testSessionInfo">The test session info object.</param>
153-
/// <param name="testRunEventsHandler">The run event handler.</param>
154-
void RunTests(
155-
IEnumerable<TestCase> testCases,
156-
string runSettings,
157-
TestPlatformOptions options,
158-
TestSessionInfo testSessionInfo,
159-
ITestRunEventsHandler testRunEventsHandler);
145+
// <summary>
146+
// Starts a test run.
147+
// </summary>
148+
//
149+
// <param name="testCases">The list of test cases for the test run.</param>
150+
// <param name="runSettings">The run settings for the run.</param>
151+
// <param name="options">The test platform options.</param>
152+
// <param name="testSessionInfo">The test session info object.</param>
153+
// <param name="testRunEventsHandler">The run event handler.</param>
154+
// void RunTests(
155+
// IEnumerable<TestCase> testCases,
156+
// string runSettings,
157+
// TestPlatformOptions options,
158+
// TestSessionInfo testSessionInfo,
159+
// ITestRunEventsHandler testRunEventsHandler);
160160

161161
/// <summary>
162162
/// Starts a test run.
@@ -188,23 +188,23 @@ void RunTestsWithCustomTestHost(
188188
ITestRunEventsHandler testRunEventsHandler,
189189
ITestHostLauncher customTestHostLauncher);
190190

191-
/// <summary>
192-
/// Starts a test run.
193-
/// </summary>
194-
///
195-
/// <param name="sources">The list of source assemblies for the test run.</param>
196-
/// <param name="runSettings">The run settings for the run.</param>
197-
/// <param name="options">The test platform options.</param>
198-
/// <param name="testSessionInfo">The test session info object.</param>
199-
/// <param name="testRunEventsHandler">The run event handler.</param>
200-
/// <param name="customTestHostLauncher">The custom host launcher.</param>
201-
void RunTestsWithCustomTestHost(
202-
IEnumerable<string> sources,
203-
string runSettings,
204-
TestPlatformOptions options,
205-
TestSessionInfo testSessionInfo,
206-
ITestRunEventsHandler testRunEventsHandler,
207-
ITestHostLauncher customTestHostLauncher);
191+
// <summary>
192+
// Starts a test run.
193+
// </summary>
194+
//
195+
// <param name="sources">The list of source assemblies for the test run.</param>
196+
// <param name="runSettings">The run settings for the run.</param>
197+
// <param name="options">The test platform options.</param>
198+
// <param name="testSessionInfo">The test session info object.</param>
199+
// <param name="testRunEventsHandler">The run event handler.</param>
200+
// <param name="customTestHostLauncher">The custom host launcher.</param>
201+
// void RunTestsWithCustomTestHost(
202+
// IEnumerable<string> sources,
203+
// string runSettings,
204+
// TestPlatformOptions options,
205+
// TestSessionInfo testSessionInfo,
206+
// ITestRunEventsHandler testRunEventsHandler,
207+
// ITestHostLauncher customTestHostLauncher);
208208

209209
/// <summary>
210210
/// Starts a test run.
@@ -236,83 +236,83 @@ void RunTestsWithCustomTestHost(
236236
ITestRunEventsHandler testRunEventsHandler,
237237
ITestHostLauncher customTestHostLauncher);
238238

239-
/// <summary>
240-
/// Starts a test run.
241-
/// </summary>
242-
///
243-
/// <param name="testCases">The list of test cases for the test run.</param>
244-
/// <param name="runSettings">The run settings for the run.</param>
245-
/// <param name="options">The test platform options.</param>
246-
/// <param name="testSessionInfo">The test session info object.</param>
247-
/// <param name="testRunEventsHandler">The run event handler.</param>
248-
/// <param name="customTestHostLauncher">The custom host launcher.</param>
249-
void RunTestsWithCustomTestHost(
250-
IEnumerable<TestCase> testCases,
251-
string runSettings,
252-
TestPlatformOptions options,
253-
TestSessionInfo testSessionInfo,
254-
ITestRunEventsHandler testRunEventsHandler,
255-
ITestHostLauncher customTestHostLauncher);
239+
// <summary>
240+
// Starts a test run.
241+
// </summary>
242+
//
243+
// <param name="testCases">The list of test cases for the test run.</param>
244+
// <param name="runSettings">The run settings for the run.</param>
245+
// <param name="options">The test platform options.</param>
246+
// <param name="testSessionInfo">The test session info object.</param>
247+
// <param name="testRunEventsHandler">The run event handler.</param>
248+
// <param name="customTestHostLauncher">The custom host launcher.</param>
249+
// void RunTestsWithCustomTestHost(
250+
// IEnumerable<TestCase> testCases,
251+
// string runSettings,
252+
// TestPlatformOptions options,
253+
// TestSessionInfo testSessionInfo,
254+
// ITestRunEventsHandler testRunEventsHandler,
255+
// ITestHostLauncher customTestHostLauncher);
256256

257-
/// <summary>
258-
/// Starts a new test session.
259-
/// </summary>
260-
///
261-
/// <param name="sources">The list of source assemblies for the test run.</param>
262-
/// <param name="runSettings">The run settings for the run.</param>
263-
/// <param name="eventsHandler">The session event handler.</param>
264-
///
265-
/// <returns>A test session info object.</returns>
266-
ITestSession StartTestSession(
267-
IList<string> sources,
268-
string runSettings,
269-
ITestSessionEventsHandler eventsHandler);
257+
// <summary>
258+
// Starts a new test session.
259+
// </summary>
260+
//
261+
// <param name="sources">The list of source assemblies for the test run.</param>
262+
// <param name="runSettings">The run settings for the run.</param>
263+
// <param name="eventsHandler">The session event handler.</param>
264+
//
265+
// <returns>A test session info object.</returns>
266+
// ITestSession StartTestSession(
267+
// IList<string> sources,
268+
// string runSettings,
269+
// ITestSessionEventsHandler eventsHandler);
270270

271-
/// <summary>
272-
/// Starts a new test session.
273-
/// </summary>
274-
///
275-
/// <param name="sources">The list of source assemblies for the test run.</param>
276-
/// <param name="runSettings">The run settings for the run.</param>
277-
/// <param name="options">The test platform options.</param>
278-
/// <param name="eventsHandler">The session event handler.</param>
279-
///
280-
/// <returns>A test session info object.</returns>
281-
ITestSession StartTestSession(
282-
IList<string> sources,
283-
string runSettings,
284-
TestPlatformOptions options,
285-
ITestSessionEventsHandler eventsHandler);
271+
// <summary>
272+
// Starts a new test session.
273+
// </summary>
274+
//
275+
// <param name="sources">The list of source assemblies for the test run.</param>
276+
// <param name="runSettings">The run settings for the run.</param>
277+
// <param name="options">The test platform options.</param>
278+
// <param name="eventsHandler">The session event handler.</param>
279+
//
280+
// <returns>A test session info object.</returns>
281+
// ITestSession StartTestSession(
282+
// IList<string> sources,
283+
// string runSettings,
284+
// TestPlatformOptions options,
285+
// ITestSessionEventsHandler eventsHandler);
286286

287-
/// <summary>
288-
/// Starts a new test session.
289-
/// </summary>
290-
///
291-
/// <param name="sources">The list of source assemblies for the test run.</param>
292-
/// <param name="runSettings">The run settings for the run.</param>
293-
/// <param name="options">The test platform options.</param>
294-
/// <param name="eventsHandler">The session event handler.</param>
295-
/// <param name="testHostLauncher">The custom host launcher.</param>
296-
///
297-
/// <returns>A test session info object.</returns>
298-
ITestSession StartTestSession(
299-
IList<string> sources,
300-
string runSettings,
301-
TestPlatformOptions options,
302-
ITestSessionEventsHandler eventsHandler,
303-
ITestHostLauncher testHostLauncher);
287+
// <summary>
288+
// Starts a new test session.
289+
// </summary>
290+
//
291+
// <param name="sources">The list of source assemblies for the test run.</param>
292+
// <param name="runSettings">The run settings for the run.</param>
293+
// <param name="options">The test platform options.</param>
294+
// <param name="eventsHandler">The session event handler.</param>
295+
// <param name="testHostLauncher">The custom host launcher.</param>
296+
//
297+
// <returns>A test session info object.</returns>
298+
// ITestSession StartTestSession(
299+
// IList<string> sources,
300+
// string runSettings,
301+
// TestPlatformOptions options,
302+
// ITestSessionEventsHandler eventsHandler,
303+
// ITestHostLauncher testHostLauncher);
304304

305-
/// <summary>
306-
/// Stops the test session.
307-
/// </summary>
308-
///
309-
/// <param name="testSessionInfo">The test session info object.</param>
310-
/// <param name="eventsHandler">The session event handler.</param>
311-
///
312-
/// <returns>True if the session was successfuly stopped, false otherwise.</returns>
313-
bool StopTestSession(
314-
TestSessionInfo testSessionInfo,
315-
ITestSessionEventsHandler eventsHandler);
305+
// <summary>
306+
// Stops the test session.
307+
// </summary>
308+
//
309+
// <param name="testSessionInfo">The test session info object.</param>
310+
// <param name="eventsHandler">The session event handler.</param>
311+
//
312+
// <returns>True if the session was successfuly stopped, false otherwise.</returns>
313+
// bool StopTestSession(
314+
// TestSessionInfo testSessionInfo,
315+
// ITestSessionEventsHandler eventsHandler);
316316

317317
/// <summary>
318318
/// Cancels the last test run.

0 commit comments

Comments
 (0)