Skip to content

Commit

Permalink
parallelize tests (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
hakenr committed Feb 20, 2025
1 parent ea02e51 commit 8091cce
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7 deletions.
6 changes: 1 addition & 5 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>

<!-- aligned NuGet PackageVersion for package-bundles -->
<ComponentsPackagesVersion>4.7.11</ComponentsPackagesVersion>
Expand All @@ -21,10 +21,6 @@
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
<MSTestAnalysisMode>Recommended</MSTestAnalysisMode>

<!-- MSTEST0001: Explicitly enable or disable tests parallelization -->
<!-- TODO: Evaluate whether or not test projects are parallelizable or not. -->
<NoWarn>$(NoWarn);MSTEST0001</NoWarn>
</PropertyGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" Condition="Exists($([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')))"/>
Expand Down
3 changes: 2 additions & 1 deletion Havit.Blazor.Components.Web.Bootstrap.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
global using Bunit;
global using Bunit;
global using Microsoft.VisualStudio.TestTools.UnitTesting;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
1 change: 1 addition & 0 deletions Havit.Blazor.Components.Web.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using Microsoft.VisualStudio.TestTools.UnitTesting;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
3 changes: 2 additions & 1 deletion Havit.Blazor.Documentation.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
global using Havit.Blazor.Components.Web;
global using Havit.Blazor.Components.Web.Bootstrap;
global using Havit.Blazor.Components.Web.Bootstrap;
global using Microsoft.VisualStudio.TestTools.UnitTesting;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
1 change: 1 addition & 0 deletions Havit.Blazor.Grpc.Client.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
1 change: 1 addition & 0 deletions Havit.Blazor.Grpc.Core.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

0 comments on commit 8091cce

Please sign in to comment.