rust/library/test/src
Jubilee 37f17bca7c
Rollup merge of #89082 - smoelius:master, r=kennytm
Implement #85440 (Random test ordering)

This PR adds `--shuffle` and `--shuffle-seed` options to `libtest`. The options are similar to the [`-shuffle` option](c894b442d1/src/testing/testing.go (L1482-L1499)) that was recently added to Go.

Here are the relevant parts of the help message:
```
        --shuffle       Run tests in random order
        --shuffle-seed SEED
                        Run tests in random order; seed the random number
                        generator with SEED
...
By default, the tests are run in alphabetical order. Use --shuffle or set
RUST_TEST_SHUFFLE to run the tests in random order. Pass the generated
"shuffle seed" to --shuffle-seed (or set RUST_TEST_SHUFFLE_SEED) to run the
tests in the same order again. Note that --shuffle and --shuffle-seed do not
affect whether the tests are run in parallel.
```
Is an RFC needed for this?
2021-10-07 20:26:12 -07:00
..
formatters Rollup merge of #89082 - smoelius:master, r=kennytm 2021-10-07 20:26:12 -07:00
helpers Rollup merge of #89082 - smoelius:master, r=kennytm 2021-10-07 20:26:12 -07:00
stats
term Ignore automatically derived impls of Clone and Debug in dead code analysis 2021-09-09 19:49:07 +02:00
bench.rs move core::hint::black_box under its own feature gate 2021-04-25 11:08:12 +02:00
cli.rs Check allow_unstable before checking environment variables 2021-09-30 12:57:34 -04:00
console.rs Implement #85440 2021-09-29 21:51:46 -04:00
event.rs Implement #85440 2021-09-29 21:51:46 -04:00
lib.rs Rollup merge of #89082 - smoelius:master, r=kennytm 2021-10-07 20:26:12 -07:00
options.rs feat(libtest): Add JUnit formatter 2021-04-25 15:51:50 -07:00
stats.rs Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
term.rs Remove unused stuff and switch to pub(crate) whenever possible. 2021-07-18 22:00:41 +08:00
test_result.rs Remove unsafe impl Send for CompletedTest & TestResult 2021-02-19 00:00:00 +00:00
tests.rs Add tests 2021-09-29 21:51:59 -04:00
time.rs Dogfood 'str_split_once()` in the std lib 2020-12-07 14:24:05 -07:00
types.rs Update to new bootstrap compiler 2021-06-28 11:30:49 -04:00