php - Jenkins (using Ant) not executing PHPUnit tests -


i'm trying use jenkins ant in php application (symfony2) can't tests execute. can see in jenkins 'console output' screen correct configuration file being read, shows no tests executed.

when run ant build.xml file in cli project's root directory, build successful , tests execute , pass.

if cd /users/shared/jenkins/{...}/workspace directory , run 'sudo ant', says no tests executed! baffling exact same build.xml file executes tests when run project root directory.

the relevant portion of buil.xml file is:

<target name="phpunit" description="run unit tests phpunit">     <exec executable="phpunit" failonerror="true">         <arg value="-c" />         <arg path="${workspace}/app/phpunit.xml.dist" />     </exec> </target> 

app/phpunit.xml looks like:

<?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                   = "bootstrap.php.cache" >  <testsuites>     <testsuite name="project test suite">         <directory>../src/*/*bundle/tests</directory>     </testsuite> </testsuites>  <filter>     <whitelist>         <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>   <logging>     <log type="coverage-html" target="build/coverage" title="gms" charset="utf-8" yui="true" highlight="true"          lowupperbound="35" highlowerbound="70"/>     <log type="coverage-clover" target="build/logs/clover.xml"/>     <log type="junit" target="build/logs/junit.xml" logincompleteskipped="false"/> </logging> </phpunit> 

i have jenkins clover, jenkins clover php , xunit plugins installed.

the relevant portion of console output jenkins is:

phpunit:  [exec] phpunit 3.7.24 sebastian bergmann.  [exec]   [exec] configuration read /users/shared/jenkins/home/jobs/gms/workspace/app/phpunit.xml.dist  [exec]   [exec]   [exec]   [exec] time: 181 ms, memory: 2.50mb  [exec]   [exec] [30;43m[2kno tests executed!  [exec] [0m[2k  [exec] generating code coverage report in clover xml format ... done  [exec]   [exec] generating code coverage report in html format ... done 

it helps if commit tests. fool.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -