$npx skillfedfor your agent

pytest-order

pytest plugin to run tests in a specific order

Worth itPyPI UtilitiesReleased Jun 20266.1M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_order-1.5.0-py3-none-any.whl
v1.5.0 · released 2026-06-13 · Python >=3.9 · 1 runtime deps: pytest

Yes. This is an actively maintained, permissively licensed plugin with low install friction and no known vulnerabilities. It solves a real problem—test ordering—that 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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires pytest >= 6.2.4 for Python < 3.14, or pytest >= 7.4 for Python 3.14; Python >= 3.9 required.
  • Low friction: pure Python wheel with only pytest as a runtime dependency.
  • Active maintenance with a release 62 days ago and recent commits; the project is not archived and has 210 stars.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) means you can use this plugin freely in commercial and open-source projects with minimal restrictions.

last release 2026-06-13 (62 days) · last repo commit 2026-08-11 · 210 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,082,883 downloads/mo, #1,973 on PyPI

Verify before relying

pip install pytest-order

import pytest

@pytest.mark.order(1)
def test_first():
    assert True

@pytest.mark.order(2)
def test_second():
    assert True
  • Whether ordering handles tests with implicit dependencies or shared state correctly.
  • Performance impact when ordering large test suites.
  • Compatibility edge cases with other pytest plugins beyond pytest-dependency.
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

This is an actively maintained, permissively licensed plugin with low install friction and no known vulnerabilities. It solves a real problem—test ordering—that 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.

Install

pytest-order on PyPI

Before you install

Low friction: pure Python wheel with only pytest as a runtime dependency. Active maintenance with a release 62 days ago and recent commits; the project is not archived and has 210 stars.

Requires pytest >= 6.2.4 for Python < 3.14, or pytest >= 7.4 for Python 3.14; Python >= 3.9 required.

License in practice

MIT license (permissive) means you can use this plugin freely in commercial and open-source projects with minimal restrictions.

Quickstart

pip install pytest-order

import pytest

@pytest.mark.order(1)
def test_first():
    assert True

@pytest.mark.order(2)
def test_second():
    assert True

Verify before relying

  • Whether ordering handles tests with implicit dependencies or shared state correctly.
  • Performance impact when ordering large test suites.
  • Compatibility edge cases with other pytest plugins beyond pytest-dependency.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pytest
MaintenanceActively maintained 62 days since the last release
Last repo commit
First released
Downloads6,082,883 / month, #1,973 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities

Evidence: pytest_order-1.5.0-py3-none-any.whl

Tags

Capabilities
pytest test orderingcontrol test execution orderpytest marker orderingrun tests in specific sequencepytest test dependenciespytest before after markerstest ordering plugin
Topics
pytest-plugintest-ordering
PyPI keywords
testingpytestordering

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pytest test ordering”

  • pytest-orderA pytest plugin that lets you control the order in which tests run…
  • pytest-reverseA pytest plugin that runs tests in reverse order to detect test…
  • pytest-randomlyA pytest plugin that randomly shuffles test execution order and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also pytest-find-dependencies · pytest-ordering · pytest-integration · pytest-randomly · pytest-dependency · pytest-reverse · pytest-fail-slow · pytest-replay · pytest-isort · pytest-custom-exit-code