From 8091cce33b4e6e3fac9eec0182a768ff4142e459 Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Thu, 20 Feb 2025 13:12:01 +0100 Subject: [PATCH] parallelize tests (experimental) --- Directory.Build.props | 6 +----- Havit.Blazor.Components.Web.Bootstrap.Tests/GlobalUsings.cs | 3 ++- .../Properties/AssemblyInfo.cs | 1 + Havit.Blazor.Components.Web.Tests/GlobalUsings.cs | 1 + .../Properties/AssemblyInfo.cs | 1 + Havit.Blazor.Documentation.Tests/GlobalUsings.cs | 3 ++- Havit.Blazor.Documentation.Tests/Properties/AssemblyInfo.cs | 1 + Havit.Blazor.Grpc.Client.Tests/Properties/AssemblyInfo.cs | 1 + Havit.Blazor.Grpc.Core.Tests/Properties/AssemblyInfo.cs | 1 + 9 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 Havit.Blazor.Components.Web.Bootstrap.Tests/Properties/AssemblyInfo.cs create mode 100644 Havit.Blazor.Components.Web.Tests/GlobalUsings.cs create mode 100644 Havit.Blazor.Components.Web.Tests/Properties/AssemblyInfo.cs create mode 100644 Havit.Blazor.Documentation.Tests/Properties/AssemblyInfo.cs create mode 100644 Havit.Blazor.Grpc.Client.Tests/Properties/AssemblyInfo.cs create mode 100644 Havit.Blazor.Grpc.Core.Tests/Properties/AssemblyInfo.cs diff --git a/Directory.Build.props b/Directory.Build.props index 8e98fbce2..77c124607 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -11,7 +11,7 @@ true enable latest - true + true 4.7.11 @@ -21,10 +21,6 @@ true true Recommended - - - - $(NoWarn);MSTEST0001 diff --git a/Havit.Blazor.Components.Web.Bootstrap.Tests/GlobalUsings.cs b/Havit.Blazor.Components.Web.Bootstrap.Tests/GlobalUsings.cs index 83dc38e2e..7025e4e0f 100644 --- a/Havit.Blazor.Components.Web.Bootstrap.Tests/GlobalUsings.cs +++ b/Havit.Blazor.Components.Web.Bootstrap.Tests/GlobalUsings.cs @@ -1 +1,2 @@ -global using Bunit; \ No newline at end of file +global using Bunit; +global using Microsoft.VisualStudio.TestTools.UnitTesting; \ No newline at end of file diff --git a/Havit.Blazor.Components.Web.Bootstrap.Tests/Properties/AssemblyInfo.cs b/Havit.Blazor.Components.Web.Bootstrap.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..8b7de71cd --- /dev/null +++ b/Havit.Blazor.Components.Web.Bootstrap.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1 @@ +[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] \ No newline at end of file diff --git a/Havit.Blazor.Components.Web.Tests/GlobalUsings.cs b/Havit.Blazor.Components.Web.Tests/GlobalUsings.cs new file mode 100644 index 000000000..057ac5d09 --- /dev/null +++ b/Havit.Blazor.Components.Web.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using Microsoft.VisualStudio.TestTools.UnitTesting; \ No newline at end of file diff --git a/Havit.Blazor.Components.Web.Tests/Properties/AssemblyInfo.cs b/Havit.Blazor.Components.Web.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..8b7de71cd --- /dev/null +++ b/Havit.Blazor.Components.Web.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1 @@ +[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] \ No newline at end of file diff --git a/Havit.Blazor.Documentation.Tests/GlobalUsings.cs b/Havit.Blazor.Documentation.Tests/GlobalUsings.cs index 9fc46609f..62b6c1522 100644 --- a/Havit.Blazor.Documentation.Tests/GlobalUsings.cs +++ b/Havit.Blazor.Documentation.Tests/GlobalUsings.cs @@ -1,2 +1,3 @@ global using Havit.Blazor.Components.Web; -global using Havit.Blazor.Components.Web.Bootstrap; \ No newline at end of file +global using Havit.Blazor.Components.Web.Bootstrap; +global using Microsoft.VisualStudio.TestTools.UnitTesting; \ No newline at end of file diff --git a/Havit.Blazor.Documentation.Tests/Properties/AssemblyInfo.cs b/Havit.Blazor.Documentation.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..8b7de71cd --- /dev/null +++ b/Havit.Blazor.Documentation.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1 @@ +[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] \ No newline at end of file diff --git a/Havit.Blazor.Grpc.Client.Tests/Properties/AssemblyInfo.cs b/Havit.Blazor.Grpc.Client.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..8b7de71cd --- /dev/null +++ b/Havit.Blazor.Grpc.Client.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1 @@ +[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] \ No newline at end of file diff --git a/Havit.Blazor.Grpc.Core.Tests/Properties/AssemblyInfo.cs b/Havit.Blazor.Grpc.Core.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..8b7de71cd --- /dev/null +++ b/Havit.Blazor.Grpc.Core.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1 @@ +[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] \ No newline at end of file