Index: visual_studio/NativeClientVSAddIn/test.bat |
diff --git a/visual_studio/NativeClientVSAddIn/test.bat b/visual_studio/NativeClientVSAddIn/test.bat |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7d18547959c794dc5bce69c345de87fbb17ea5a9 |
--- /dev/null |
+++ b/visual_studio/NativeClientVSAddIn/test.bat |
@@ -0,0 +1,17 @@ |
+:: Locations |
+@set out_directory=..\..\out\NativeClientVSAddIn\Test |
+@set mstest_file=Results.trx |
+@set test_assembly=..\..\out\NativeClientVSAddIn\Debug\UnitTests.dll |
+ |
+:: Set up the Visual Studio environment |
+@call "%VS100COMNTOOLS%vsvars32.bat" |
+ |
+:: Make the output directory and clean up existing mstest result file |
+@mkdir %out_directory% |
+@IF EXIST %out_directory%\%mstest_file% del %out_directory%\%mstest_file% |
binji
2012/07/17 00:05:58
nit: does if exist have to be caps? Nothing else i
tysand
2012/07/17 01:18:18
Done.
|
+ |
+:: Run MSTest |
+@mstest /testcontainer:%test_assembly% /testsettings:Local.testsettings /resultsfile:%out_directory%\%mstest_file% |
+ |
+:: Parse the result with python script |
+@python check_test_results.py %out_directory%\%mstest_file% |
binji
2012/07/17 00:05:58
don't you need to set the errorlevel for this batc
tysand
2012/07/17 01:18:18
Done.
|