mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 17:01:43 +02:00
Fix attempt for user warnings.
This commit is contained in:
12
.github/workflows/test-unit.yml
vendored
12
.github/workflows/test-unit.yml
vendored
@@ -142,21 +142,21 @@ jobs:
|
|||||||
working-directory: ./e107_tests/
|
working-directory: ./e107_tests/
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
|
|
||||||
- name: Debug error reporting
|
|
||||||
run: php -r 'echo error_reporting();'
|
|
||||||
working-directory: ./e107_tests/
|
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
if [ $(php -r 'printf(extension_loaded("xdebug") ? 1 : 0);') = '1' ]
|
if [ $(php -r 'printf(extension_loaded("xdebug") ? 1 : 0);') = '1' ]
|
||||||
then
|
then
|
||||||
php -d error_reporting="E_ALL & ~E_USER_WARNING" -d xdebug.mode=coverage ./vendor/bin/codecept run unit --steps --debug --coverage --coverage-xml
|
php -d error_reporting=32255 -d xdebug.mode=coverage ./vendor/bin/codecept run unit --steps --debug --coverage --coverage-xml
|
||||||
else
|
else
|
||||||
echo "Warning: xdebug not available; skipping coverage..."
|
echo "Warning: xdebug not available; skipping coverage..."
|
||||||
php -d error_reporting="E_ALL & ~E_USER_WARNING" ./vendor/bin/codecept run unit --steps --debug
|
php -d error_reporting=32255 ./vendor/bin/codecept run unit --steps --debug
|
||||||
fi
|
fi
|
||||||
working-directory: ./e107_tests/
|
working-directory: ./e107_tests/
|
||||||
|
|
||||||
|
- name: Debug error reporting
|
||||||
|
run: php -r 'echo error_reporting();'
|
||||||
|
working-directory: ./e107_tests/
|
||||||
|
|
||||||
- name: Send code coverage report to Code Climate
|
- name: Send code coverage report to Code Climate
|
||||||
run: |
|
run: |
|
||||||
./e107_tests/vendor/bin/cc-test-reporter format-coverage \
|
./e107_tests/vendor/bin/cc-test-reporter format-coverage \
|
||||||
|
Reference in New Issue
Block a user