4

Implement #85440 (Random test ordering) by smoelius · Pull Request #89082 · rust...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/89082
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Contributor

smoelius commented on Sep 18

edited

This PR adds --shuffle and --shuffle-seed options to libtest. The options are similar to the -shuffle option 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?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK