Skip to content

Commit fdd7615

Browse files
committed
Double processor count
1 parent 36a75f3 commit fdd7615

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/MSTest.Acceptance.IntegrationTests.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@
1515
<Compile Include="$(RepoRoot)test\IntegrationTests\Microsoft.Testing.Platform.Acceptance.IntegrationTests\ServerMode\**\*.cs" Link="ServerMode\%(RecursiveDir)%(FileName)%(Extension)" />
1616
</ItemGroup>
1717

18+
<PropertyGroup>
19+
<_ProcessorCount>$([System.Environment]::ProcessorCount)</_ProcessorCount>
20+
</PropertyGroup>
21+
<ItemGroup>
22+
<AssemblyAttribute Include="Microsoft.VisualStudio.TestTools.UnitTesting.Parallelize">
23+
<_Parameter1>Workers = $(_ProcessorCount) * 2</_Parameter1>
24+
<_Parameter1_IsLiteral>true</_Parameter1_IsLiteral>
25+
<_Parameter2>Scope = Microsoft.VisualStudio.TestTools.UnitTesting.ExecutionScope.MethodLevel</_Parameter2>
26+
<_Parameter2_IsLiteral>true</_Parameter2_IsLiteral>
27+
</AssemblyAttribute>
28+
</ItemGroup>
29+
1830
<ItemGroup>
1931
<PackageReference Include="MSBuild.StructuredLogger" />
2032
<PackageReference Include="StreamJsonRpc" />

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
using Microsoft.Testing.Extensions;
55

6-
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel, Workers = 0)]
7-
86
// Opt-out telemetry
97
Environment.SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1");
108

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88
<DefineConstants Condition=" '$(FastAcceptanceTest)' == 'true'">$(DefineConstants);SKIP_INTERMEDIATE_TARGET_FRAMEWORKS</DefineConstants>
99
</PropertyGroup>
1010

11+
<PropertyGroup>
12+
<_ProcessorCount>$([System.Environment]::ProcessorCount)</_ProcessorCount>
13+
</PropertyGroup>
14+
<ItemGroup>
15+
<AssemblyAttribute Include="Microsoft.VisualStudio.TestTools.UnitTesting.Parallelize">
16+
<_Parameter1>Workers = $(_ProcessorCount) * 2</_Parameter1>
17+
<_Parameter1_IsLiteral>true</_Parameter1_IsLiteral>
18+
<_Parameter2>Scope = Microsoft.VisualStudio.TestTools.UnitTesting.ExecutionScope.MethodLevel</_Parameter2>
19+
<_Parameter2_IsLiteral>true</_Parameter2_IsLiteral>
20+
</AssemblyAttribute>
21+
</ItemGroup>
22+
1123
<ItemGroup>
1224
<PackageReference Include="MSBuild.StructuredLogger" />
1325
<PackageReference Include="StreamJsonRpc" />

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
using Microsoft.Testing.Extensions;
55

6-
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel, Workers = 0)]
7-
86
// Opt-out telemetry
97
Environment.SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1");
108

0 commit comments

Comments
 (0)