No warning when `--random-order-seed` is used when test execution order is not random · Issue #4571 · sebastianbergmann/phpunit · GitHub
Skip to content

No warning when --random-order-seed is used when test execution order is not random #4571

Closed

Description

@fancyweb

When you only use the --random-order-seed 123 without also using --order-by random, the seed is not taken into account and no warning message is displayed. This might be a common mistake, I think the DX could be improved.

Could we either:

  1. Take the seed into account by switching the default order by to random when it is not specified and there is a given seed.
  2. Display a warning message when there is a given seed but the order by is not random (it's obviously a mistake I guess).

Activity

  1. added
    type/bugSomething is broken
    and removed
    type/enhancementA new idea that should be implemented
    on Apr 9, 2026
  2. changed the title [-]Random order seed is taken into account only if the order by option is "random"[/-] [+]No warning when `--random-order-seed` is used when test execution order is not random[/+] on Apr 9, 2026
  3. sebastianbergmann commented on Apr 9, 2026

    @sebastianbergmann
    Owner

    Closed via 8142518.

  4. locked as resolved and limited conversation to collaborators on May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

type/bugSomething is brokenversion/12Something affects PHPUnit 12version/13Something affects PHPUnit 13

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions