diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-07-06 09:20:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 21:20:33 -0400 |
commit | e8258e0210c4690a1fbbcefe0e6a859da8efc19b (patch) | |
tree | 75c56efb39d917d3d697eea4879d3e48acdc657e /cli/tests/integration/test_tests.rs | |
parent | bdeb4f430b387ebdacce7c68bb1f316830856c39 (diff) |
feat(test): add --shuffle flag to randomize test ordering (#11163)
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r-- | cli/tests/integration/test_tests.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index 3bc81c5d3..c029b154d 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -114,3 +114,15 @@ itest!(unhandled_rejection { exit_code: 1, output: "test/unhandled_rejection.out", }); + +itest!(shuffle { + args: "test --shuffle test/shuffle", + exit_code: 0, + output_str: Some("[WILDCARD]"), +}); + +itest!(shuffle_with_seed { + args: "test --shuffle=42 test/shuffle", + exit_code: 0, + output: "test/shuffle.out", +}); |