cruisecontrol - phpUnderControl and PHPUnit always failing build with code 255 -


i have following build.xml file setup in phpundercontrol.

    <target name="phpunit">     <exec executable="phpunit" dir="${basedir}/httpdocs" failonerror="on">         <arg line="--log-junit ${basedir}/build/logs/phpunit.xml                 --coverage-clover ${basedir}/build/logs/phpunit.coverage.xml                 --coverage-html ${basedir}/build/coverage                 --colors                 ${basedir}/httpdocs/qc/unit/calculatortest.php" />     </exec> </target> 

for unkown reason build fails below message.

phpunit:  [exec] phpunit 3.4.15 sebastian bergmann.  [exec]   build failed /opt/cruisecontrol-bin-2.8.3/projects/citest.local/build.xml:30: exec returned: 255 

i have run simple unit test manually within unit directory , phpunit returns.

phpunit 3.4.15 sebastian bergmann.  .  time: 0 seconds, memory: 5.25mb  ok (1 test, 1 assertion) 

does know why keeps failing build, when tests fine?

my build script have clean method removes , log files, not that. have manually removed log files, in case it's script. , changed owner of log directories writable.

if makes difference phpunit.xml empty after phpunit run.

thanks.

update: incidentally if remove failonerror="on" works, obviously, phpunit still returns 255 , want fail on errors, issue there isn't errors yet still fails!

255 error code php throws on fatal , (i think) parse errors.

could there fatal or parse error in script execution, maybe after tests have run?

any php errors? happens if add error_reporting(e_all); ?


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -