Phpunit default tests directory (for travis integration)
I have a github project that I want to integrate with travis. I am currently running my tests with:
phpunit tests
teams. I would like the tests to be executed with:
phpunit
since the trevisc needs it. I guess this is a file issue phpunit.xml.dist
, but I cannot work out how to install it. Any help would be appreciated
+3
source to share
1 answer
This should tell you the answer: https://github.com/travis-ci/travis-ci-php-example/blob/master/.travis.yml
In case the link ceases to exist, your .travis.yml has the following lines:
# omitting "script:" will default to phpunit
# use the $DB env variable to determine the phpunit.xml to use
script: phpunit --configuration phpunit_$DB.xml --coverage-text
+5
source to share