“暂停"被忽略了 [英] "pause" being ignored

查看:32
本文介绍了“暂停"被忽略了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到我必须能够使用单个命令在我的站点中运行所有单元测试,因此我创建了一个 bat 文件来执行此操作.

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.

即使在结束前有暂停,在 phpunit 命令之后,单元测试的结果也会在屏幕上闪烁.

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

我的另一个带有 java %folder%/%file% 的批处理文件运行 java 软件,然后暂停.

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

更新:使用 SimpleTest 运行单元测试比使用 phpUnit 容易得多.

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

推荐答案

试试call phpunit ...

这篇关于“暂停"被忽略了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆