Error starting phpunit test using Phing

Jenkins version - 2.22

Phing Version - 0.13.3

PHPUnit Version - 5.7.19

phpunit.xml

<?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals="false" backupStaticAttributes="false" bootstrap="bootstrap/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false"> <testsuites> <testsuite name="Application Test Suite"> <directory suffix="Test.php">./tests</directory> </testsuite> </testsuites> <filter> <whitelist processUncoveredFilesFromWhitelist="true"> <directory suffix=".php">./app/Managers</directory> </whitelist> </filter> <php> <env name="APP_ENV" value="testing"/> <env name="CACHE_DRIVER" value="array"/> <env name="SESSION_DRIVER" value="array"/> <env name="QUEUE_DRIVER" value="sync"/> </php> </phpunit> 

build.xml

 ... <coverage-setup database="./report/coverage/database"> <fileset id="coverageFileSet" dir="./app/Managers"> <include name="**/*Manager*.php" /> </fileset> </coverage-setup> <phpunit pharlocation="./vendor/phpunit/phpunit/phpunit" configuration="./phpunit.xml" printsummary="true" haltonerror="true" haltonfailure="true" codecoverage="true"> <formatter type="clover" outfile="report/coverage/clover.xml"/> </phpunit> <coverage-report outfile="report/coverage/coverage.xml"> <report todir="report/coverage"/> </coverage-report> ... 

When I run the phing target in Jenkins , I get the following error. unrecognized option -- b

What am I doing wrong? or any help on how to debug this problem?

Note. This is a laravel-5.4 application, and when I run phpunit from the root folder of the application, it works.

+5
source share

Source: https://habr.com/ru/post/1265470/


All Articles