Skip to content

Commit 1a23dbd

Browse files
Remove the Microsoft.Testing.Extensions.Telemetry from the package it will come from the VSBridge (#2454)
1 parent 1e18124 commit 1a23dbd

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.Linux.nuspec

-5
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,22 @@
55
<dependencies>
66
<group targetFramework="netstandard2.0">
77
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
8-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
98
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
109
</group>
1110
<group targetFramework="netcoreapp3.1">
1211
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
13-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
1412
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
1513
</group>
1614
<group targetFramework="net6.0">
1715
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
18-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
1916
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
2017
</group>
2118
<group targetFramework="net7.0">
2219
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
23-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
2420
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
2521
</group>
2622
<group targetFramework="net8.0">
2723
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
28-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
2924
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
3025
</group>
3126
</dependencies>

src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.nuspec

-6
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,27 @@
55
<dependencies>
66
<group targetFramework="netstandard2.0">
77
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
8-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
98
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
109
</group>
1110
<group targetFramework="net462">
1211
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
13-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
1412
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
1513
</group>
1614
<group targetFramework="uap10.0" />
1715
<group targetFramework="netcoreapp3.1">
1816
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
19-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
2017
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
2118
</group>
2219
<group targetFramework="net6.0">
2320
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
24-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
2521
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
2622
</group>
2723
<group targetFramework="net7.0">
2824
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
29-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
3025
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
3126
</group>
3227
<group targetFramework="net8.0">
3328
<dependency id="Microsoft.Testing.Extensions.VSTestBridge" version="$TestingPlatformVersion$" />
34-
<dependency id="Microsoft.Testing.Extensions.Telemetry" version="$TestingPlatformVersion$" />
3529
<dependency id="Microsoft.Testing.Platform.MSBuild" version="$TestingPlatformVersion$" />
3630
</group>
3731
</dependencies>

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/Program.cs

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
using MSTest.Acceptance.IntegrationTests;
1313

14+
// Opt-out telemetry
15+
Environment.SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1");
16+
1417
CommandLine.MaxOutstandingCommands = Environment.ProcessorCount;
1518

1619
ITestApplicationBuilder builder = await TestApplication.CreateBuilderAsync(args);

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Program.cs

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
using Microsoft.Testing.Platform.CommandLine;
1111
using Microsoft.Testing.Platform.Extensions.TestHost;
1212

13+
// Opt-out telemetry
14+
Environment.SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1");
15+
1316
CommandLine.MaxOutstandingCommands = Environment.ProcessorCount;
1417

1518
ITestApplicationBuilder builder = await TestApplication.CreateBuilderAsync(args);

test/UnitTests/Microsoft.Testing.Platform.UnitTests/Program.cs

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
using Microsoft.Testing.Platform.Services;
1414
using Microsoft.Testing.TestInfrastructure;
1515

16+
// Opt-out telemetry
17+
Environment.SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1");
18+
1619
// DebuggerUtility.AttachVSToCurrentProcess();
1720
ITestApplicationBuilder builder = await TestApplication.CreateBuilderAsync(args);
1821
builder.TestHost.AddTestApplicationLifecycleCallbacks(sp => new GlobalTasks(sp.GetCommandLineOptions()));

0 commit comments

Comments
 (0)