Problem/Motivation

When running run-tests.sh, --class and --file arguments must be last or they will be ignored. (I did not observe this requirement with --module.)

Steps to reproduce

Run: php core/scripts/run-tests.sh --verbose --color --non-html --sqlite /tmp/drupal/test.sqlite --class "Drupal\FunctionalJavascriptTests\TableDrag\TableDragTest" --url https://.../

Result: ERROR: No valid tests were specified.

Run the same command with --class moved to the end and tests run.

Proposed resolution

Document this behavior in the help text of the script.

User interface changes

None.

API changes

None.

Issue fork drupal-3187730

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Liam Morland created an issue. See original summary.

Liam Morland’s picture

Status: Active » Needs review

Fix in issue fork.

mondrake’s picture

Makes a lot of sense. Can you please open the Merge Request and I’ll RTBC.

mondrake’s picture

Status: Needs review » Reviewed & tested by the community

alexpott made their first commit to this issue’s fork.

  • alexpott committed af36a53 on 9.2.x authored by Liam Morland
    Issue #3187730 by Liam Morland: Document that run-tests.sh arguments --...
alexpott’s picture

Version: 9.2.x-dev » 9.1.x-dev
Status: Reviewed & tested by the community » Fixed

Merged and cherry-picked back to 9.1.x

  • alexpott committed 1965d48 on 9.1.x authored by Liam Morland
    Issue #3187730 by Liam Morland: Document that run-tests.sh arguments --...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.