From 4d94ed9fd1d9cb69337134561c520a24a91b91b2 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 16 Jun 2022 14:41:27 -0500 Subject: Use dotnet test on C++/CLI test projects to get trx logs. --- src/burn/burn.cmd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/burn') diff --git a/src/burn/burn.cmd b/src/burn/burn.cmd index 60640b08..127f9253 100644 --- a/src/burn/burn.cmd +++ b/src/burn/burn.cmd @@ -7,6 +7,8 @@ @if /i "%1"=="release" set _C=Release @if not "%1"=="" shift & goto parse_args +@set _B=%~dp0..\..\build\burn\%_C% + @echo Building burn %_C% :: burn @@ -15,8 +17,8 @@ nuget restore || exit /b msbuild burn_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\burn_build.binlog || exit /b -msbuild test\BurnUnitTest -t:Test -p:Configuration=%_C% -p:Platform=Win32 -nologo -p:CppCliTestResultsFile="%_L%\TestResults\BurnUnitTest32.xunit2.xml" || exit /b -msbuild test\BurnUnitTest -t:Test -p:Configuration=%_C% -p:Platform=x64 -nologo -p:CppCliTestResultsFile="%_L%\TestResults\BurnUnitTest64.xunit2.xml" || 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 @popd @endlocal -- cgit v1.2.3-55-g6feb