PhpUndercontrol 没有找到任何测试,在我的项目中(在 Cruisecontrol/项目中)我有这个:
/www/tests/DomainTEst/DomainTest.php (例如我现在只想运行一个测试)
<?xml version="1.0" encoding="UTF-8"?>
<project name="myproject" default="build" basedir=".">
<target name="build" depends="checkout,php-documentor,php-codesniffer,phpmd,phpunit" />
<target name="checkout">
<exec executable="git" dir="${basedir}/source" failonerror="on">
<arg line="pull origin master"/>
</exec>
</target>
<target name="php-documentor">
<exec executable="phpdoc" dir="${basedir}/source">
<arg line="-ct type -ue on -t ${basedir}/build/api -tb /usr/share/php/data/phpUnderControl/data/phpdoc -o HTML:Phpuc:phpuc -d src/"/>
</exec>
</target>
<target name="php-codesniffer">
<exec executable="phpcs" dir="${basedir}/source" output="${basedir}/build/logs/checkstyle.xml">
<arg line="--report=checkstyle --standard=PEAR --ignore=src/autoload src/"/>
</exec>
</target>
<target name="phpmd">
<exec executable="phpmd" dir="${basedir}/source">
<arg line="./src xml codesize,unusedcode,naming"/>
</exec>
</target>
//here is the problem I suppose!!!!!!!!!!!!!
<target name="phpunit">
<exec executable="phpunit" dir="${basedir}/source" failonerror="on">
<arg line="--log-junit ${basedir}/build/logs/phpunit.xml --coverage-xml ${basedir}/build/logs/phpunit.coverage.xml --coverage-html ${basedir}/build/coverage DomainTest www/tests/DomainTest/DomainTest.php" />
</exec>
</target>
</project>