run-tests.sh doesn't allow use --coverage-text argument for phpunit

Created on 31 August 2024, 8 months ago

Problem/Motivation

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.

Steps to reproduce

Try to run the phpunit with the --coverage-text argument through the run-tests.sh script.

Proposed resolution

Allow the --coverage-text argument. And maybe other coverage-related arguments too.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
PHPUnit 

Last updated about 13 hours ago

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024