@@ -43,6 +43,14 @@ IF NOT DEFINED APPVEYOR_CI (
4343rem path to fsc.exe which will be used by tests
4444set FSCBINPATH = %~dp0 ..\%FLAVOR% \net40\bin
4545
46+ rem path to nunit runners
47+ set NUNITDIR = %~dp0 ..\packages\NUnit.Runners.2.6.3\tools
48+ if not exist " %NUNITDIR% " (
49+ pushd %~dp0 ..
50+ .\.nuget\nuget.exe restore packages.config -PackagesDirectory packages
51+ popd
52+ )
53+
4654rem folder where test logs/results will be dropped
4755set RESULTSDIR = %~dp0 \TestResults
4856if not exist " %RESULTSDIR% " (mkdir" %RESULTSDIR% " )
@@ -182,13 +190,8 @@ set XMLFILE=CoreUnit_%coreunitsuffix%_Xml.xml
182190set OUTPUTFILE = CoreUnit_%coreunitsuffix% _Output.log
183191set ERRORFILE = CoreUnit_%coreunitsuffix% _Error.log
184192
185- where.exe nunit-console.exe> NUL 2 > NUL
186- if errorlevel 1 (
187- echo Error: nunit-console.exe is not in the PATH
188- exit /b1
189- )
190- echo nunit-console.exe /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \..\..\%coreunitsuffix% \bin\FSharp.Core.Unittests.dll
191- nunit-console.exe /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \..\..\%coreunitsuffix% \bin\FSharp.Core.Unittests.dll
193+ echo " %NUNITDIR% \nunit-console.exe" /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \..\..\%coreunitsuffix% \bin\FSharp.Core.Unittests.dll
194+ " %NUNITDIR% \nunit-console.exe" /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \..\..\%coreunitsuffix% \bin\FSharp.Core.Unittests.dll
192195
193196goto :EOF
194197
@@ -198,13 +201,8 @@ set XMLFILE=ComplierUnit_%compilerunitsuffix%_Xml.xml
198201set OUTPUTFILE = ComplierUnit_%compilerunitsuffix% _Output.log
199202set ERRORFILE = ComplierUnit_%compilerunitsuffix% _Error.log
200203
201- where.exe nunit-console.exe> NUL 2 > NUL
202- if errorlevel 1 (
203- echo Error: nunit-console.exe is not in the PATH
204- exit /b1
205- )
206- echo nunit-console.exe /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \..\..\%compilerunitsuffix% \bin\FSharp.Compiler.Unittests.dll
207- nunit-console.exe /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \..\..\%compilerunitsuffix% \bin\FSharp.Compiler.Unittests.dll
204+ echo " %NUNITDIR% \nunit-console.exe" /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \..\..\%compilerunitsuffix% \bin\FSharp.Compiler.Unittests.dll
205+ " %NUNITDIR% \nunit-console.exe" /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \..\..\%compilerunitsuffix% \bin\FSharp.Compiler.Unittests.dll
208206
209207goto :EOF
210208
@@ -214,16 +212,9 @@ set XMLFILE=IDEUnit_Xml.xml
214212set OUTPUTFILE = IDEUnit_Output.log
215213set ERRORFILE = IDEUnit_Error.log
216214
217- where.exe nunit-console-x86.exe> NUL 2 > NUL
218- if errorlevel 1 (
219- echo Error: nunit-console-x86.exe is not in the PATH
220- exit /b1
221- )
222-
223- for /f" tokens=*" %%a in ('where.exe nunit-console-x86.exe')do (set nunitlocation=%%~dpa )
224- xcopy /y" %nunitlocation% \lib\*.dll" " %FSCBINPATH% "
215+ xcopy /y" %NUNITDIR% \lib\*.dll" " %FSCBINPATH% "
225216
226- echo nunit-console-x86.exe /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \Unittests.dll
227- nunit-console-x86.exe /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \Unittests.dll
217+ echo " %NUNITDIR% \ nunit-console-x86.exe" /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \Unittests.dll
218+ " %NUNITDIR% \ nunit-console-x86.exe" /nologo /result=%XMLFILE% /output=%OUTPUTFILE% /err=%ERRORFILE% /work=%RESULTSDIR% %FSCBINPATH% \Unittests.dll
228219
229220goto :EOF