From 41bc33d4bc7b03c920102ddaba195e96d152fb5f Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Wed, 15 Nov 2023 10:19:32 +1000 Subject: [PATCH] Use the regular dotnet test command invocation --- .gitignore | 1 + Build.ps1 | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index c90bd95..db9e81a 100644 --- a/.gitignore +++ b/.gitignore @@ -201,3 +201,4 @@ FakesAssemblies/ project.lock.json artifacts/ +/test/TestApp-* diff --git a/Build.ps1 b/Build.ps1 index 1513382..18d5bfb 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -30,9 +30,6 @@ if($LASTEXITCODE -ne 0) { throw 'pack failed' } Write-Output "build: Testing" -# Dotnet test doesn't run separate TargetFrameworks in parallel: https://github.com/dotnet/sdk/issues/19147 -# Workaround: use `dotnet test` on dlls directly in order to pass the `--parallel` option to vstest. -# The _reported_ runtime is wrong but the _actual_ used runtime is correct, see https://github.com/microsoft/vstest/issues/2037#issuecomment-720549173 -& dotnet test test\Serilog.Settings.Configuration.Tests\bin\Release\*\Serilog.Settings.Configuration.Tests.dll --parallel +& dotnet test test\Serilog.Settings.Configuration.Tests\Serilog.Settings.Configuration.Tests.csproj -if($LASTEXITCODE -ne 0) { throw 'unit tests failed' } \ No newline at end of file +if($LASTEXITCODE -ne 0) { throw 'unit tests failed' }