pytest-randomly
A plugin for the Python pytest testing framework that randomizes test execution order and records the seed for reproduction, used to expose intermittent failures that depend on execution order.
Timeline (last 90 days)
pytest-randomly shuffles test order, prints the seed at the start (e.g., `Using --randomly-seed=1553614239`), and resets Python's global `random` seed before each test's setup, run and teardown.
pytest's `--randomly-seed=last` reruns the previous seed, provided that pytest's cache provider plugin (cacheprovider) is enabled.
With `-p no:randomly` disabling pytest-randomly, pytest no longer recognizes the `--randomly-seed` option, so this argument cannot be added to the loop.
All Facts (3)
pytest-randomly shuffles test order, prints the seed at the start (e.g., `Using --randomly-seed=1553614239`), and resets Python's global `random` seed before each test's setup, run and teardown.
50%Unverifiedpytest's `--randomly-seed=last` reruns the previous seed, provided that pytest's cache provider plugin (cacheprovider) is enabled.
50%UnverifiedWith `-p no:randomly` disabling pytest-randomly, pytest no longer recognizes the `--randomly-seed` option, so this argument cannot be added to the loop.
50%