Skip to content

Instantly share code, notes, and snippets.

@AydinHassan
Last active August 29, 2015 13:58
Show Gist options
  • Save AydinHassan/9939392 to your computer and use it in GitHub Desktop.
Save AydinHassan/9939392 to your computer and use it in GitHub Desktop.
ZF2 Unit Tests - Merge code - coverage
composer install --dev --prefer-source
mkdir -p build/coverage
cp tests/TestConfiguration.php.travis tests/TestConfiguration.php
ls -d tests/ZendTest/* | parallel --gnu --keep-order 'echo "Running {} tests"; ./vendor/bin/phpunit -c tests/phpunit.xml.dist --coverage-php build/coverage/coverage-{/.}.cov {};' || exit 1
#Generates error
php vendor/bin/phpcov.php --merge --clover build/logs/clover.xml --whitelist library build/coverage
aydin@ubuntu ~/zf2:master$ php vendor/bin/phpcov.php --merge --clover build/logs/clover.xml --whitelist library build/coverage
PHP Warning: require(ezc/Base/base.php): failed to open stream: No such file or directory in /home/aydin/Documents/zf2/vendor/sebastianbergmann/phpcov/src/autoload.php on line 45
PHP Stack trace:
PHP 1. {main}() /home/aydin/Documents/zf2/vendor/sebastianbergmann/phpcov/phpcov.php:0
PHP 2. require() /home/aydin/Documents/zf2/vendor/sebastianbergmann/phpcov/phpcov.php:46
PHP Fatal error: require(): Failed opening required 'ezc/Base/base.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/aydin/Documents/zf2/vendor/sebastianbergmann/phpcov/src/autoload.php on line 45
PHP Stack trace:
PHP 1. {main}() /home/aydin/Documents/zf2/vendor/sebastianbergmann/phpcov/phpcov.php:0
PHP 2. require() /home/aydin/Documents/zf2/vendor/sebastianbergmann/phpcov/phpcov.php:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment