- Issue created by @murz
In the issue
#3389338: Add Code Coverage reporting →
I enable reporting code coverage for PHPUnit and it works when we run phpunit directly. But when we run the test through the run-tests.sh
script, it throws an error:
executing: sudo SYMFONY_DEPRECATIONS_HELPER='disabled' MINK_DRIVER_ARGS_WEBDRIVER='["chrome", {"browserName":"chrome","goog:chromeOptions":{"args":["--disable-dev-shm-usage","--disable-gpu","--headless"]}}, "http://localhost:9515"]' -u www-data php web/core/scripts/run-tests.sh --color --keep-results --concurrency 32 --repeat '1' --sqlite 'sites/default/files/.sqlite' --dburl mysql://drupaltestbot:drupaltestbotpw@database/mysql --url http://localhost/web --verbose --non-html -c /builds/project/scheduler/phpunit-drupal-ci-module.xml --coverage-text --colors=never scheduler_js
...
ERROR: Unknown argument '--coverage-text'.
Would be great to allow this argument in the script. Also, we have other similar arguments like "--coverage-html", would be good to allow them too.
Try to run the phpunit with the --coverage-text
argument through the run-tests.sh
script.
Allow the --coverage-text
argument. And maybe other coverage-related arguments too.