Filter Xdebug for PHPUnit
https://phpunit.readthedocs.io/en/7.4/code-coverage-analysis.html#speeding-up-code-coverage-with-xdebug Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
1532675036
commit
473dc91c14
@ -12,6 +12,7 @@ install:
|
||||
- yarn install --non-interactive
|
||||
|
||||
before_script:
|
||||
- vendor/bin/phpunit --dump-xdebug-filter build/xdebug-filter.php
|
||||
- export TESTSUITE_PASSWORD=`openssl rand -base64 30`
|
||||
- export TESTSUITE_BROWSERSTACK_KEY=`echo cHlDcHJTNmZwZjVlaUR2RmV6VkU= | base64 --decode`
|
||||
- mysql -uroot -e "CREATE DATABASE IF NOT EXISTS test"
|
||||
@ -21,7 +22,7 @@ before_script:
|
||||
|
||||
script:
|
||||
- ./scripts/generate-mo --quiet
|
||||
- ./vendor/bin/phpunit --configuration phpunit.xml.dist --exclude-group selenium
|
||||
- vendor/bin/phpunit --prepend build/xdebug-filter.php --exclude-group selenium
|
||||
|
||||
after_script:
|
||||
- if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi
|
||||
@ -145,6 +146,7 @@ jobs:
|
||||
- TESTSUITE_USER=root
|
||||
- TESTSUITE_URL=http://127.0.0.1:8000
|
||||
install:
|
||||
- phpenv config-rm xdebug.ini
|
||||
- ./test/install-browserstack
|
||||
- composer install --no-interaction
|
||||
- yarn install --non-interactive
|
||||
|
||||
Loading…
Reference in New Issue
Block a user