Skip to content

Commit c9185a2

Browse files
committed
Parallelize tests across target frameworks on AppVeyor
1 parent 88bcae5 commit c9185a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Build.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ if($LASTEXITCODE -ne 0) { exit 2 }
3030

3131
Write-Output "build: Testing"
3232

33-
& dotnet test test\Serilog.Settings.Configuration.Tests --configuration Release --no-build --no-restore
33+
# Dotnet test doesn't run separate TargetFrameworks in parallel: https://github.com/dotnet/sdk/issues/19147
34+
# Workaround: use `dotnet test` on dlls directly in order to pass the `--parallel` option to vstest.
35+
# The _reported_ runtime is wrong but the _actual_ used runtime is correct, see https://github.com/microsoft/vstest/issues/2037#issuecomment-720549173
36+
& dotnet test test\Serilog.Settings.Configuration.Tests\bin\Release\*\Serilog.Settings.Configuration.Tests.dll --parallel
3437

3538
if($LASTEXITCODE -ne 0) { exit 3 }

0 commit comments

Comments
 (0)