【发布时间】:2015-03-22 00:16:14
【问题描述】:
这是我的配置。 Jenkins 构建失败,因为它看不到文件。我的本地 Ubuntu 14.04 VM 没有创建它,并且 jenkins AWS 14.04 实例的 jenkins 构建失败。 Xdebug 和 tokenizer 已启用。
<?xml version="1.0" encoding="UTF-8"?>
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
backupGlobals = "false"
backupStaticAttributes = "false"
colors = "true"
convertErrorsToExceptions = "true"
convertNoticesToExceptions = "true"
convertWarningsToExceptions = "true"
processIsolation = "false"
stopOnFailure = "false"
syntaxCheck = "false"
bootstrap = "../app/bootstrap.php.cache" >
<testsuites>
<testsuite name="Project Test Suite">
<directory>../src/*/*Bundle/Tests</directory>
<directory>../src/*/Bundle/*Bundle/Tests</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-html" target="../build/coverage"/>
<log type="coverage-clover" target="../build/logs/clover.xml"/>
<log type="coverage-crap4j" target="../build/logs/crap4j.xml"/>
<log type="junit" target="../build/logs/junit.xml" logIncompleteSkipped="false"/>
</logging>
<!--
<php>
<server name="KERNEL_DIR" value="/path/to/your/app/" />
</php>
-->
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory>../src</directory>
<exclude>
<directory>../src/*/*Bundle/Resources</directory>
<directory>../src/*/*Bundle/Tests</directory>
<directory>../src/*/Bundle/*Bundle/Resources</directory>
<directory>../src/*/Bundle/*Bundle/Tests</directory>
</exclude>
</whitelist>
</filter>
<groups>
<exclude>
<group>Acceptance</group>
</exclude>
</groups>
<listeners>
<listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
</listeners>
</phpunit>
【问题讨论】:
-
放日志,可以吗?
标签: php jenkins phpunit xdebug