OLD | NEW |
1 @echo off | 1 @echo off |
2 | 2 |
3 :: Locations | 3 :: Locations |
4 set out_directory=..\..\out\vs_addin\Test | 4 set out_directory=..\..\out\vs_addin\Test |
5 set mstest_file=Results.trx | 5 set mstest_file=Results.trx |
6 set test_assembly=..\..\out\vs_addin\Debug\UnitTests.dll | 6 set test_assembly=..\..\out\vs_addin\Debug\UnitTests.dll |
7 | 7 |
8 :: Set up the Visual Studio environment | 8 :: Set up the Visual Studio environment |
9 call "%VS100COMNTOOLS%vsvars32.bat" | 9 call "%VS100COMNTOOLS%vsvars32.bat" |
10 | 10 |
11 :: Make the output directory and clean up existing mstest result file | 11 :: Make the output directory and clean up existing mstest result file |
12 mkdir %out_directory% | 12 mkdir %out_directory% |
13 if exist %out_directory%\%mstest_file% del %out_directory%\%mstest_file% | 13 if exist %out_directory%\%mstest_file% del %out_directory%\%mstest_file% |
14 | 14 |
15 :: Run MSTest | 15 :: Run MSTest |
16 mstest /testcontainer:%test_assembly% /testsettings:Local.testsettings /resultsf
ile:%out_directory%\%mstest_file% | 16 mstest /testcontainer:%test_assembly% /testsettings:Local.testsettings /resultsf
ile:%out_directory%\%mstest_file% |
17 | 17 |
18 :: Parse the result with python script, return python's exit status | 18 :: Parse the result with python script, return python's exit status |
19 python check_test_results.py %out_directory%\%mstest_file% | 19 python check_test_results.py %out_directory%\%mstest_file% |
20 exit /B %ERRORLEVEL% | 20 exit /B %ERRORLEVEL% |
OLD | NEW |