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 folde开发者_StackOverflowr=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.
Try call phpunit ...
精彩评论