@ParameterizedTest parameters order #3525
-
Is there a way to declare parameters order in a parameterized test? I'm using
and the test runs in random order. |
Beta Was this translation helpful? Give feedback.
Answered by
marcphilipp
Dec 15, 2023
Replies: 1 comment
-
This should work: private static List<String> parameters() {
List<String> keys = new ArrayList<>(map.keySet());
Collections.shuffle(keys);
return keys;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
marcphilipp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should work: