Skip to content

Commit 6a858a3

Browse files
cvpoienaruCodrin Poienaru
and
Codrin Poienaru
authored
Mark early testhost startup APIs as internal for TP 16.9 (#2768)
* Marked test session APIs as internal * Changed branding to 16.9.1 and updated CC externals Co-authored-by: Codrin Poienaru <[email protected]>
1 parent 27786c2 commit 6a858a3

File tree

8 files changed

+286
-286
lines changed

8 files changed

+286
-286
lines changed

scripts/build/TestPlatform.Dependencies.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- this version also needs to be "statically" readable because the test fixture will inspect this file for the version
1212
and because during the test `dotnet test` will run and re-build some of the test projects and at that time the version
1313
from a build parameter would not be available, so I am writing this version from the build.ps1 script to keep it in sync -->
14-
<NETTestSdkVersion>16.9.0-dev</NETTestSdkVersion>
14+
<NETTestSdkVersion>16.9.1-dev</NETTestSdkVersion>
1515

1616
<MSTestFrameworkVersion>2.1.0</MSTestFrameworkVersion>
1717
<MSTestAdapterVersion>2.1.0</MSTestAdapterVersion>
@@ -32,7 +32,7 @@
3232
<JsonNetVersion>9.0.1</JsonNetVersion>
3333
<MoqVersion>4.7.63</MoqVersion>
3434
<TestPlatformExternalsVersion>16.9.0-preview-4267359</TestPlatformExternalsVersion>
35-
<CodeCoverageExternalsVersion>16.9.0-beta.21105.3</CodeCoverageExternalsVersion>
35+
<CodeCoverageExternalsVersion>16.9.0-beta.21119.4</CodeCoverageExternalsVersion>
3636
<MicrosoftFakesVersion>16.9.0-beta.20628.1</MicrosoftFakesVersion>
3737

3838
<MicrosoftBuildPackageVersion>16.0.461</MicrosoftBuildPackageVersion>

scripts/build/TestPlatform.Settings.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- This version is read by vsts-prebuild.ps1 and is a base for the current version, this should be updated
66
at the start of new iteration to the goal number. This is also used to version the local packages. This version needs to be statically
77
readable when we read the file as xml, don't move it to a .props file, unless you change the build server process -->
8-
<TPVersionPrefix>16.9.0</TPVersionPrefix>
8+
<TPVersionPrefix>16.9.1</TPVersionPrefix>
99
</PropertyGroup>
1010
<PropertyGroup>
1111
<!-- Versioning is defined from the build script. Use a default dev build if it's not defined.

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)