开发者

Does an overall PHPunit Test Result of 0 or 1 (True / False) exist

PHPunit can create a multitude of result reports, but I am having trouble figuring out how to get an overall resul开发者_JAVA百科t for all tests.


I think you can check the exit status of the phpunit command In your shell, try

phpunit successfulTest.php
echo $?

phpunit failingTest.php
echo $?

The result should be different. I figured this out by remembering how the phpundercontrol guys wrote their phpunit target

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜