0

在推荐的 php ant 脚本中,最后给出了 phpcb,因为它使用了 phpcs、phpmd、phpunit、phpcpd 等创建的所有日志文件。问题是我的 phpunit 这些天没有通过,phpcb 不会在没有所有以前的进程的情况下运行返回 true 并且没有 phpcb 构建失败。那么无论退出代码如何,如何让 phpcb 在所有工具之后运行?

4

2 回答 2

0

修复 PHPUnit 测试。

如果不可能,请跳过那些失败的测试,并调用$this->markTestSkipped('Here is the reason why this test isn't fixed...').

有关更多详细信息,请参阅文档

如果你在详细模式下运行 PHPUnit,你会得到一个持续的提醒来修复测试。

于 2013-09-13T20:48:21.803 回答
0

在 build.xml 中,您可以忽略 phpunit 失败并继续执行 Ant 脚本。

<target name="phpunit" description="Run unit tests with PHPUnit">
    <exec executable="phpunit" failonerror="false">
    [...]
</target>
于 2013-09-27T08:40:19.877 回答