[KongchangAI]
Product

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)

Oct 17

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.

Unverified50%
Oct 17

pytest's `--randomly-seed=last` reruns the previous seed, provided that pytest's cache provider plugin (cacheprovider) is enabled.

Unverified50%
Oct 17

With `-p no:randomly` disabling pytest-randomly, pytest no longer recognizes the `--randomly-seed` option, so this argument cannot be added to the loop.

Unverified50%

All Facts (3)

Source Articles