aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2022-10-03 15:55:20 -0700
committerRob Mensching <rob@firegiant.com>2022-10-04 14:23:47 -0700
commit21ea5adcc788bbecd81e475277aba927ec66c860 (patch)
treea02076c55c29fd3c78ba0136745f0621b357825a /src/api
parent7d231e729b4e53979952dcdd12654aa77a411521 (diff)
downloadwix-21ea5adcc788bbecd81e475277aba927ec66c860.tar.gz
wix-21ea5adcc788bbecd81e475277aba927ec66c860.tar.bz2
wix-21ea5adcc788bbecd81e475277aba927ec66c860.zip
Run tests in bulk to improve performance
The fewer executions of "dotnet test" the better so batch up calls by referencing multiple assembly DLLs.
Diffstat (limited to 'src/api')
-rw-r--r--src/api/api.cmd15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/api/api.cmd b/src/api/api.cmd
index d1f87f54..0c3bb31b 100644
--- a/src/api/api.cmd
+++ b/src/api/api.cmd
@@ -26,10 +26,12 @@
26msbuild api_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\api_build.binlog || exit /b 26msbuild api_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\api_build.binlog || exit /b
27 27
28:: Test 28:: Test
29dotnet test burn\test\WixToolsetTest.Mba.Core -c %_C% --nologo --no-build -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.Mba.Core.trx" || exit /b 29dotnet test ^
30dotnet test %_B%\x86\BalUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\BalUtilUnitTest.trx" || exit /b 30 %_B%\net6.0\WixToolsetTest.Data.dll ^
31dotnet test %_B%\x86\BextUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\BextUtilUnitTest.trx" || exit /b 31 %_B%\net6.0\win-x86\WixToolsetTest.Mba.Core.dll ^
32dotnet test wix\api_wix.sln -c %_C% --nologo --no-build -l "trx;LogFileName=%_L%\TestResults\api_wix.trx" || exit /b 32 %_B%\x86\BalUtilUnitTest.dll ^
33 %_B%\x86\BextUtilUnitTest.dll ^
34 --nologo -l "trx;LogFileName=%_L%\TestResults\api.trx" || exit /b
33 35
34@goto :end 36@goto :end
35 37
@@ -41,10 +43,7 @@ dotnet test wix\api_wix.sln -c %_C% --nologo --no-build -l "trx;LogFileName=%_L%
41@del "..\..\build\artifacts\WixToolset.Data.*.nupkg" 2> nul 43@del "..\..\build\artifacts\WixToolset.Data.*.nupkg" 2> nul
42@del "..\..\build\artifacts\WixToolset.Extensibility.*.nupkg" 2> nul 44@del "..\..\build\artifacts\WixToolset.Extensibility.*.nupkg" 2> nul
43@del "..\..\build\artifacts\WixToolset.Mba.Core.*.nupkg" 2> nul 45@del "..\..\build\artifacts\WixToolset.Mba.Core.*.nupkg" 2> nul
44@del "%_L%\TestResults\WixToolsetTest.Mba.Core.trx" 2> nul 46@del "%_L%\TestResults\api.trx" 2> nul
45@del "%_L%\TestResults\BalUtilUnitTest.trx" 2> nul
46@del "%_L%\TestResults\BextUtilUnitTest.trx" 2> nul
47@del "%_L%\TestResults\api_wix.trx" 2> nul
48@rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.balutil" 2> nul 47@rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.balutil" 2> nul
49@rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.bextutil" 2> nul 48@rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.bextutil" 2> nul
50@rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.bootstrappercore.native" 2> nul 49@rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.bootstrappercore.native" 2> nul