“pause” being ignored

↘锁芯ラ 提交于 2019-12-22 12:17:37

问题


I read that I must be able to run all unit tests in my site with a single command, so I created a bat file to do it.

Even with pause before the end, after the phpunit command, the result of the unit tests flashes in the screen.

@echo off
cd c:\
cd xampp
cd htdocs
cd light
cd myworks
echo on
set /p site=The site:
set /p version=The version:
set /p location=The location:
phpunit "%site% v%version%/%location%"
pause

My other batch file with java %folder%/%file% runs the java software, then pauses.

@echo off
cd c:\
cd Codes
cd 1st general - Head First Java
echo on
set /p folder=Type a folder:
set /p file=Type a file without extension:
java %folder%/%file%
pause

UPDATE: it's much easier to run the unit tests with SimpleTest than with phpUnit.


回答1:


Try call phpunit ...



来源:https://stackoverflow.com/questions/1985030/pause-being-ignored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!