{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"A pytest plugin that lets you control the order in which tests run using markers, either by index number or by specifying relationships between tests.","skillfed_tags":["pytest-plugin","test-ordering"],"use_cases":["Run setup or fixture tests first and teardown tests last to ensure proper test isolation.","Enforce a specific sequence when tests have implicit dependencies or shared state.","Group and order related tests using scope options for organized test execution.","Run critical or fast tests early to fail fast, and slow or optional tests later.","Integrate test ordering with pytest-dependency markers for declarative test relationships."],"what_it_does":"pytest-order is a pytest plugin that gives you fine-grained control over test execution order. Instead of relying on pytest's default discovery order, you can use the `order` marker to run tests by index (e.g., `@pytest.mark.order(1)` for first), from the end using negative indices, or relative to other tests using `before` and `after` attributes. It also supports session-, module-, class-, and directory-scope ordering, and can integrate with pytest-dependency markers if configured.\n\nThe plugin is a maintained fork of the older pytest-ordering project, with additional features like relative ordering and configuration options. It works across Linux, macOS, and Windows, and supports Python versions from 3.9 through 3.14. Installation is straightforward via pip, and the only runtime dependency is pytest itself.","worth_installing":"Yes. This is an actively maintained, permissively licensed plugin with low install friction and no known vulnerabilities. It solves a real problem\u2014test ordering\u2014that many projects need. Use it when you have tests with implicit dependencies or when you want deterministic execution order; skip it if your tests are properly isolated and order-independent."},"id":"pytest-order","links":{"html":"https://skillfed.io/packages/pytest-order","md":"https://skillfed.io/packages/pytest-order.md","pypi":"https://pypi.org/project/pytest-order/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-13","license_spdx":"MIT","license_treatment":"permissive","name":"pytest-order","python_support":"supports_current","summary":"pytest plugin to run tests in a specific order"},"popularity":{"monthly_downloads":6082883,"position":1973,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.5.0"}
