From 21ea5adcc788bbecd81e475277aba927ec66c860 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Mon, 3 Oct 2022 15:55:20 -0700 Subject: Run tests in bulk to improve performance The fewer executions of "dotnet test" the better so batch up calls by referencing multiple assembly DLLs. --- src/tools/tools.cmd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/tools') diff --git a/src/tools/tools.cmd b/src/tools/tools.cmd index 90c10af0..2ec67f46 100644 --- a/src/tools/tools.cmd +++ b/src/tools/tools.cmd @@ -10,6 +10,8 @@ @if /i "%1"=="clean" set _CLEAN=1 @if not "%1"=="" shift & goto parse_args +@set _B=%~dp0..\..\build\tools\%_C% + :: Clean @if "%_INC%"=="" call :clean @@ -24,8 +26,10 @@ msbuild -Restore tools.sln -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L msbuild publish_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\tools_publish.binlog || exit /b :: Test -dotnet test -c %_C% --no-build --nologo test\WixToolsetTest.Heat -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.Heat.trx" || exit /b -dotnet test -c %_C% --no-build --nologo test\WixToolsetTest.HeatTasks -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.HeatTasks.trx" || exit /b +dotnet test ^ + %_B%\test\WixToolsetTest.Heat\net472\WixToolsetTest.Heat.dll ^ + %_B%\test\WixToolsetTest.HeatTasks\net472\WixToolsetTest.HeatTasks.dll ^ + --nologo -l "trx;LogFileName=%_L%\TestResults\tools.trx" || exit /b :: Pack msbuild -t:Pack WixToolset.Heat -p:Configuration=%_C% -p:NoBuild=true -nologo -m -warnaserror -bl:%_L%\tools_pack.binlog || exit /b -- cgit v1.2.3-55-g6feb