开发者

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

开发者 https://www.devze.com 2023-01-08 10:36 出处:网络
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 co

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

精彩评论

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