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/burn/burn.cmd | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'src/burn') diff --git a/src/burn/burn.cmd b/src/burn/burn.cmd index 127f9253..f1753106 100644 --- a/src/burn/burn.cmd +++ b/src/burn/burn.cmd @@ -3,12 +3,20 @@ @set _C=Debug @set _L=%~dp0..\..\build\logs + :parse_args @if /i "%1"=="release" set _C=Release +@if /i "%1"=="inc" set _INC=1 +@if /i "%1"=="clean" set _CLEAN=1 @if not "%1"=="" shift & goto parse_args @set _B=%~dp0..\..\build\burn\%_C% +:: Clean + +@if "%_INC%"=="" call :clean +@if NOT "%_CLEAN%"=="" goto :end + @echo Building burn %_C% :: burn @@ -17,8 +25,20 @@ nuget restore || exit /b msbuild burn_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\burn_build.binlog || exit /b -dotnet test %_B%\x86\BurnUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\BurnUnitTest32.trx" || exit /b -dotnet test %_B%\x64\BurnUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\BurnUnitTest64.trx" || exit /b +dotnet test ^ + %_B%\x86\BurnUnitTest.dll ^ + %_B%\x64\BurnUnitTest.dll ^ + --nologo -l "trx;LogFileName=%_L%\TestResults\burn.trx" || exit /b + +@goto :end + +:clean +@rd /s/q "..\..\build\burn" 2> nul +@del "..\..\build\artifacts\WixToolset.Burn.*.nupkg" 2> nul +@del "%_L%\TestResults\burn.trx" 2> nul +@rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.burn" 2> nul +@exit /b +:end @popd @endlocal -- cgit v1.2.3-55-g6feb