Skip to content

Surefire runOrder random now outputs the seed it used to generate the…#1

Open
winglam wants to merge 1 commit into
masterfrom
random_seed
Open

Surefire runOrder random now outputs the seed it used to generate the…#1
winglam wants to merge 1 commit into
masterfrom
random_seed

Conversation

@winglam
Copy link
Copy Markdown

@winglam winglam commented Jul 28, 2020

… random test order and it can take in a seed as argument to recreate a random test order.

@winglam
Copy link
Copy Markdown
Author

winglam commented Jul 28, 2020

To test the feature, run the following on any project of your choice.

mvn test -Dsurefire.runOrder=random -Dsurefire.seed=X

Setting the seed to the same value should run the tests consistently in the same test class order, while a different value may result in a different order.

@winglam winglam force-pushed the random_seed branch 4 times, most recently from 3bc2298 to a669c19 Compare August 4, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant