phpunit icon indicating copy to clipboard operation
phpunit copied to clipboard

Confusing situation regarding --testsuite usage

Open uuf6429 opened this issue 4 years ago • 1 comments

Apologies for not filling out the template, but it is not very relevant to the issue.

I read the documentation here (applies to 9.3, 9.5 and probably earlier) regarding the usage of --testsuite. Under this section, one sees:

Test Selection Options:
  --filter <pattern>          Filter which tests to run
  --testsuite <name>          Filter which testsuite to run

But further down, one sees:

So one gives the impression that only a name is allowed, and the other that a pattern is allowed. I tried various forms of the pattern unsuccessfully.

After that, I searched in the issues here and found #2273, which gave the impression that either I'm doing something wrong or it's a bug. I've followed the trail to #2281 and #2351 which explains the situation.

To be honest, the approach in #2351 is a bit weird (there are different and more common ways to repeat parameters in cli eg --arg param1 param2 or --arg param1 --arg param2).

But the main point of confusion is the documentation. One says pattern, the other says name and in practice it is basically csv. 😆

uuf6429 avatar Jan 11 '21 19:01 uuf6429

It would be great to have at least wildcard syntax support like --testsuite=*.unit

ulcuber avatar Oct 21 '21 18:10 ulcuber