From e6e14ed1d202fb3e7c300df26be000a105258c76 Mon Sep 17 00:00:00 2001 From: Arne Dumarey Date: Mon, 19 Feb 2024 18:08:22 +0100 Subject: [PATCH] test: try fix parallelism in test --- paket.dependencies | 1 + paket.lock | 19 ++++++++++++++++--- .../AssemblyInfo.cs | 4 ++++ .../paket.references | 1 + 4 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 test/TicketingService.Monitoring.Tests/AssemblyInfo.cs diff --git a/paket.dependencies b/paket.dependencies index acf996f..843eadc 100644 --- a/paket.dependencies +++ b/paket.dependencies @@ -30,6 +30,7 @@ nuget Newtonsoft.Json 13.0.1 nuget xunit 2.4.2 nuget xunit.runner.visualstudio 2.4.5 nuget xunit.categories 2.0.6 +nuget Xunit.Extensions.Ordering 1.4.5 nuget FluentAssertions 6.5.1 nuget SwashBuckle.AspNetCore.Swagger 6.4.0 nuget SwashBuckle.AspNetCore.SwaggerGen 6.3.1 diff --git a/paket.lock b/paket.lock index 02927ca..da90aab 100644 --- a/paket.lock +++ b/paket.lock @@ -555,8 +555,18 @@ NUGET Microsoft.NET.Test.Sdk (17.1) Microsoft.CodeCoverage (>= 17.1) Microsoft.TestPlatform.TestHost (>= 17.1) - restriction: || (&& (== net472) (>= netcoreapp1.0)) (== net6.0) - Microsoft.NETCore.Platforms (6.0.4) - restriction: || (&& (== net472) (< net45)) (&& (== net472) (< net452)) (&& (== net472) (>= net5.0)) (&& (== net472) (>= netcoreapp2.0)) (&& (== net472) (< netstandard1.0)) (&& (== net472) (< netstandard1.3) (>= wpa81)) (&& (== net472) (< netstandard1.5) (>= uap10.0)) (&& (== net472) (< portable-net45+win8+wpa81)) (&& (== net472) (>= uap10.1)) (&& (== net472) (>= wp8)) (== net6.0) - Microsoft.NETCore.Targets (5.0) - restriction: || (&& (== net472) (>= net5.0)) (== net6.0) + Microsoft.NETCore.App (2.2.8) - restriction: || (&& (== net472) (>= netcoreapp1.0)) (== net6.0) + Microsoft.NETCore.DotNetHostPolicy (>= 2.2.8) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) + Microsoft.NETCore.Platforms (>= 2.2.4) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) + Microsoft.NETCore.Targets (>= 2.0) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) + NETStandard.Library (>= 2.0.3) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) + Microsoft.NETCore.DotNetAppHost (8.0.2) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) + Microsoft.NETCore.DotNetHostPolicy (8.0.2) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) + Microsoft.NETCore.DotNetHostResolver (>= 8.0.2) + Microsoft.NETCore.DotNetHostResolver (8.0.2) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) + Microsoft.NETCore.DotNetAppHost (>= 8.0.2) + Microsoft.NETCore.Platforms (6.0.4) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) + Microsoft.NETCore.Targets (5.0) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) Microsoft.OpenApi (1.3.2) Microsoft.TestPlatform.ObjectModel (17.2) - restriction: || (&& (== net472) (>= netcoreapp1.0)) (== net6.0) NuGet.Frameworks (>= 5.11) @@ -577,7 +587,7 @@ NUGET Microsoft.Build.Framework (>= 16.10) Microsoft.Build.Tasks.Core (>= 16.10) Microsoft.Build.Utilities.Core (>= 16.10) - NETStandard.Library (2.0.3) - restriction: || (&& (== net472) (< net452)) (== net6.0) + NETStandard.Library (2.0.3) - restriction: || (&& (== net472) (>= netcoreapp2.2)) (== net6.0) Microsoft.NETCore.Platforms (>= 1.1) Newtonsoft.Json (13.0.1) Npgsql (6.0.5) @@ -880,4 +890,7 @@ NUGET xunit.extensibility.execution (2.4.2) NETStandard.Library (>= 1.6.1) - restriction: || (&& (== net472) (< net452)) (== net6.0) xunit.extensibility.core (2.4.2) + Xunit.Extensions.Ordering (1.4.5) + Microsoft.NETCore.App (>= 1.0.5) - restriction: || (&& (== net472) (>= netcoreapp1.0)) (== net6.0) + xunit.core (>= 2.4.1) xunit.runner.visualstudio (2.4.5) diff --git a/test/TicketingService.Monitoring.Tests/AssemblyInfo.cs b/test/TicketingService.Monitoring.Tests/AssemblyInfo.cs new file mode 100644 index 0000000..7d1a746 --- /dev/null +++ b/test/TicketingService.Monitoring.Tests/AssemblyInfo.cs @@ -0,0 +1,4 @@ +using Xunit; + +[assembly: TestCaseOrderer("Xunit.Extensions.Ordering.TestCaseOrderer", "Xunit.Extensions.Ordering")] + diff --git a/test/TicketingService.Monitoring.Tests/paket.references b/test/TicketingService.Monitoring.Tests/paket.references index 784547c..bc4e95d 100644 --- a/test/TicketingService.Monitoring.Tests/paket.references +++ b/test/TicketingService.Monitoring.Tests/paket.references @@ -6,4 +6,5 @@ Moq xunit xunit.runner.visualstudio xunit.categories +Xunit.Extensions.Ordering FluentAssertions