From d669debaabcb46e911d4cd266325c0c806f8de18 Mon Sep 17 00:00:00 2001 From: Mark Cilia Vincenti Date: Sun, 13 Oct 2024 19:21:23 +0200 Subject: [PATCH] Fix issue with tests --- .../OpenWeatherMap.Cache.Tests.csproj | 58 ++++++++++--------- OpenWeatherMap.Cache.Tests/xunit.runner.json | 9 +++ 2 files changed, 41 insertions(+), 26 deletions(-) create mode 100644 OpenWeatherMap.Cache.Tests/xunit.runner.json diff --git a/OpenWeatherMap.Cache.Tests/OpenWeatherMap.Cache.Tests.csproj b/OpenWeatherMap.Cache.Tests/OpenWeatherMap.Cache.Tests.csproj index 179b3fe..f619e6d 100644 --- a/OpenWeatherMap.Cache.Tests/OpenWeatherMap.Cache.Tests.csproj +++ b/OpenWeatherMap.Cache.Tests/OpenWeatherMap.Cache.Tests.csproj @@ -1,34 +1,40 @@  - - net7.0;net8.0;net9.0 + + net7.0;net8.0;net9.0 + true + false + - false - + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - + + + - - - + + + Always + + - - - Always - - + + + PreserveNewest + + diff --git a/OpenWeatherMap.Cache.Tests/xunit.runner.json b/OpenWeatherMap.Cache.Tests/xunit.runner.json new file mode 100644 index 0000000..5d3bf60 --- /dev/null +++ b/OpenWeatherMap.Cache.Tests/xunit.runner.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", + "parallelAlgorithm": "aggressive", + "parallelizeAssembly": true, + "parallelizeTestCollections": true, + "stopOnFail": true, + "showLiveOutput": true, + "maxParallelThreads": "0.5x" +}