{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"A pytest plugin that randomizes the order in which tests run, helping detect test interdependencies and order-dependent failures.","skillfed_tags":["test-quality","pytest-plugin"],"use_cases":["Detect tests that depend on execution order or shared state by running them in random order and catching failures that don't occur in default order.","Reproduce a specific test failure by rerunning with the seed value reported in the original test output.","Verify test isolation at module or package scope before moving to more aggressive global randomization.","Disable randomization for known-fragile test classes while randomizing the rest of the suite."],"what_it_does":"pytest-random-order is a pytest plugin that shuffles the order in which tests execute, with fine-grained control over randomization scope. By default it does not randomize; you opt in via command-line flag or configuration. The plugin groups tests into buckets (by class, module, package, or globally) and shuffles within and across buckets, allowing you to detect tests that pass only because they run after another test that leaves the system in a particular state\u2014a common source of hidden test fragility.\n\nThe plugin reports the random seed used in each run, so if a specific test order reveals a failure, you can reproduce it exactly by passing that seed back. It also supports disabling randomization for specific modules or classes, respects pytest's failed-first flag, and can be disabled entirely if needed. It integrates seamlessly as a pytest plugin with no external dependencies beyond pytest itself.","worth_installing":"Yes. This is a lightweight, actively maintained plugin with zero security issues and a clear, narrow purpose: catching test order dependencies. Install it if you want to harden your test suite against hidden interdependencies. The opt-in design means it won't affect existing test runs unless you explicitly enable it."},"id":"pytest-random-order","links":{"html":"https://skillfed.io/packages/pytest-random-order","md":"https://skillfed.io/packages/pytest-random-order.md","pypi":"https://pypi.org/project/pytest-random-order/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-06-22","license_spdx":null,"license_treatment":"permissive","name":"pytest-random-order","python_support":"supports_current","summary":"Randomise the order in which pytest tests are run with some control over the randomness"},"popularity":{"monthly_downloads":2844743,"position":2864,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
