Skip to content

ClassOrderer.Random and MethodOrderer.Random do not use same default seed #3817

Closed
@kurellajunior

Description

@kurellajunior

The documentation is very misleading. It states, that the seed can be set individually for classes and methods, but neither configuration key is actually used:

instead for both random seeds is used MethodOrderer.Random#RANDOM_SEED_PROPERTY_NAME https://github.com/junit-team/junit5/blob/413ccc0a699fdcfde4d0cef4620ae557e5c10bd5/junit-jupiter-api/src/main/java/org/junit/jupiter/api/MethodOrderer.java#L297

This is also very inconsistent with the output of the tests which clearly suggests to set the respective seed to a specific value.

I do not know what is tha actual desired behaviour, so cannot provide a PR

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions